From 1258f3cb75c95cdaf7daebd98fd1075d2e5bb146 Mon Sep 17 00:00:00 2001 From: "Wesley W. Terpstra" <w.terpstra@gsi.de> Date: Mon, 5 Mar 2012 18:09:21 +0000 Subject: [PATCH] This is the only place where a cycle's device is invalid when callback is run. --- api/glue/device.c | 1 + 1 file changed, 1 insertion(+) diff --git a/api/glue/device.c b/api/glue/device.c index 1416e65..a41b671 100644 --- a/api/glue/device.c +++ b/api/glue/device.c @@ -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); -- GitLab