[PATCH 14/22] udev: Fix removing of the wake up handler
Peter Hutterer
peter.hutterer at who-t.net
Wed Dec 29 15:02:38 PST 2010
On Wed, Dec 29, 2010 at 09:27:26PM +0200, Pauli wrote:
> 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>
> ---
> config/udev.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/config/udev.c b/config/udev.c
> index 393723c..5943264 100644
> --- a/config/udev.c
> +++ b/config/udev.c
> @@ -302,7 +302,7 @@ config_udev_fini(void)
> udev = udev_monitor_get_udev(udev_monitor);
>
> RemoveGeneralSocket(udev_monitor_get_fd(udev_monitor));
> - RemoveBlockAndWakeupHandlers((BlockHandlerProcPtr)NoopDDA, wakeup_handler, udev_monitor);
> + RemoveBlockAndWakeupHandlers((BlockHandlerProcPtr)NoopDDA, wakeup_handler, NULL);
> udev_monitor_unref(udev_monitor);
> udev_monitor = NULL;
> udev_unref(udev);
> --
> 1.7.0.4
Reviewed-by: Peter Hutterer <peter.hutterer at who-t.net>
More information about the xorg-devel
mailing list