Skip to content
Snippets Groups Projects
Commit 1258f3cb authored by Wesley W. Terpstra's avatar Wesley W. Terpstra
Browse files

This is the only place where a cycle's device is invalid when callback is run.

parent 27cf5623
Branches
Tags
No related merge requests found
......@@ -249,6 +249,7 @@ eb_status_t eb_device_close(eb_device_t devicep) {
cycle = EB_CYCLE(cyclep);
nextp = cycle->un_link.next;
cycle->un_link.device = devicep;
if (cycle->callback)
(*cycle->callback)(cycle->user_data, cycle->un_ops.first, EB_TIMEOUT);
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment