tree b2f8ec4abbc511568e1d147ebaa99967e180edfb
parent e92310a930462c6e1611f35453f57357c42bde14
author Karol Kozimor <[EMAIL PROTECTED]> Sat, 30 Jul 2005 12:18:00 -0400
committer Len Brown <[EMAIL PROTECTED]> Fri, 05 Aug 2005 06:32:51 -0400

[ACPI] acpi_remove_notify_handler() on video driver unload

The video driver doesn't properly remove all the notify handlers
on module unload.  This has a side effect of subdevices failing
to register on module reload, but sudden death looms if the
handlers trigger after the module is unloaded.

Signed-off-by: Karol Kozimor <[EMAIL PROTECTED]>
Signed-off-by: Andrew Morton <[EMAIL PROTECTED]>
Signed-off-by: Len Brown <[EMAIL PROTECTED]>

 drivers/acpi/video.c |    7 +++++++
 1 files changed, 7 insertions(+)

diff --git a/drivers/acpi/video.c b/drivers/acpi/video.c
--- a/drivers/acpi/video.c
+++ b/drivers/acpi/video.c
@@ -1665,6 +1665,7 @@ static int
        struct acpi_video_device        *device)
+       acpi_status status;
        struct acpi_video_bus *video;
@@ -1679,6 +1680,12 @@ acpi_video_bus_put_one_device(
+       status = acpi_remove_notify_handler(device->handle,
+               ACPI_DEVICE_NOTIFY, acpi_video_device_notify);
+       if (ACPI_FAILURE(status))
+                       "Error removing notify handler\n"));
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at

Reply via email to