[PATCH v2 10/12] udev: Fix removing of the wake up handler

Pauli ext-pauli.nieminen at nokia.com
Thu Dec 30 09:19:41 PST 2010


From: Pauli Nieminen <ext-pauli.nieminen at nokia.com>

RemoveBlockAndWakeupHandlers requires caller to pass same block data
parameter as for RegisterBlockAndWakeupHandlers.

Signed-off-by: Pauli Nieminen <ext-pauli.nieminen at nokia.com>
Reviewed-by: Peter Hutterer <peter.hutterer at who-t.net>
---
 config/udev.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/config/udev.c b/config/udev.c
index 496bfbf..ca2c43a 100644
--- a/config/udev.c
+++ b/config/udev.c
@@ -307,7 +307,7 @@ config_udev_fini(void)
     udev = udev_monitor_get_udev(udev_monitor);
 
     RemoveGeneralSocket(udev_monitor_get_fd(udev_monitor));
-    RemoveBlockAndWakeupHandlers(block_handler, wakeup_handler, udev_monitor);
+    RemoveBlockAndWakeupHandlers(block_handler, wakeup_handler, NULL);
     udev_monitor_unref(udev_monitor);
     udev_monitor = NULL;
     udev_unref(udev);
-- 
1.7.0.4



More information about the xorg-devel mailing list