libxl: Fix passing of application data to timeout_deregister hook
PATCH 1/1 libxl: Fix passing of application data to timeout_deregister hook
When deregistering a timeout, the address of application data was being passed to the timeout_deregister hook instead of the data itself.
--- tools/libxl/libxl_event.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
tools/libxl/libxl_event.c +1 -1
@@ -184,7 +184,7 @@ static int time_register_finite(libxl__gc *gc, libxl__ev_time *ev,static void time_deregister (libxl__gc *gc,libxl__ev_time *ev) {if (!ev->infinite) { -OSEVENT_HOOK_VOID (timeout_deregister, &ev->for_app_reg); +OSEVENT_HOOK_VOID (timeout_deregister, ev->for_app_reg);LIBXL_TAILQ_REMOVE (&CTX ->etimes, ev, entry); } }
Signature · 1 line
1.7.7
Quoted 5 lines · Jim Fehlig
When deregistering a timeout, the address of application data was being passed to the
timeout_deregisterhook instead of the data itself.Signed-off-by Jim Fehlig <[email protected]>
Acked + applied, thanks.
Ian, this should be a candidate for the next 4.2.1 rc IMHO.
Quoted 17 lines
--- tools/libxl/libxl_event.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)tools/libxl/libxl_event.c +1
-1@@ -184,7 +184,7 @@ static int time_register_finite(libxl__gc *gc, libxl__ev_time *ev,static void time_deregister (libxl__gc *gc,libxl__ev_time *ev) {if (!ev->infinite) { -OSEVENT_HOOK_VOID (timeout_deregister, &ev->for_app_reg); +OSEVENT_HOOK_VOID (timeout_deregister, ev->for_app_reg);LIBXL_TAILQ_REMOVE (&CTX ->etimes, ev, entry); } }
Quoted 9 lines · Ian Campbell
Quoted 5 lines · Jim Fehlig
When deregistering a timeout, the address of application data was being passed to the
timeout_deregisterhook instead of the data itself.Signed-off-by Jim Fehlig <[email protected]>Acked + applied, thanks.
Ian, this should be a candidate for the next 4.2.1 rc IMHO.
Yes, that would be much appreciated. Thanks!
Regards,
Jim
Ian Campbell writes ("Re: [Xen-devel] [PATCH] libxl: Fix passing of application data to timeout_deregister hook"):
Quoted 10 lines · Jim Fehlig
Quoted 5 lines
When deregistering a timeout, the address of application data was being passed to the
timeout_deregisterhook instead of the data itself.Signed-off-by Jim Fehlig <[email protected]>Acked + applied, thanks.
Ian, this should be a candidate for the next 4.2.1 rc IMHO.
I have pushed it to 4.2-testing.hg.
Ian.