Skip to contentSkip to conversation

libxl: Fix passing of application data to timeout_deregister hook

PATCH In review Jim Fehlig 3 participants 4 messages Nov 15, 2012 – Nov 16, 2012

lore
Share & tools
lore

Jim Fehlig

author
#0 lore raw

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
index 41fd5bb..72cb723 100644
@@ -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
#1 lore raw
Quoted 5 lines · Jim Fehlig

When deregistering a timeout, the address of application data was being passed to the timeout_deregister hook instead of the data itself.

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
index 41fd5bb..72cb723 100644
@@ -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);
     }
 }
author
#2 lore raw
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_deregister hook instead of the data itself.

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

#3 lore raw
In reply to Ian Campbell

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_deregister hook instead of the data itself.

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.