Skip to content

Commit

Permalink
udev: Fix removing of the wake up handler
Browse files Browse the repository at this point in the history
RemoveBlockAndWakeupHandlers requires caller to pass same block data
parameter as for RegisterBlockAndWakeupHandlers.

Signed-off-by: Pauli Nieminen <ext-pauli.nieminen@nokia.com>
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Daniel Stone <daniel@fooishbar.org>
  • Loading branch information
Pauli Nieminen authored and fooishbar committed Dec 31, 2010
1 parent 13ac3de commit 3e14555
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/udev.c
Expand Up @@ -314,7 +314,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);
Expand Down

0 comments on commit 3e14555

Please sign in to comment.