Comment 250 for bug 1098216

Revision history for this message
In , aaron.lu (aaron.lu-linux-kernel-bugs) wrote :

Please try the following patch. After Matthew's patch, the device->brightness is not NULL anymore, so a NULL pointer access occured in acpi_video_switch_brightness for device->backlight.

diff --git a/drivers/acpi/video.c b/drivers/acpi/video.c
index 95fa76e..4a1bb47 100644
--- a/drivers/acpi/video.c
+++ b/drivers/acpi/video.c
@@ -1332,7 +1332,7 @@ acpi_video_switch_brightness(struct acpi_video_device *device, int event)
        int result = -EINVAL;

        /* no warning message if acpi_backlight=vendor is used */
- if (!acpi_video_backlight_support())
+ if (!acpi_video_verify_backlight_support())
                return 0;

        if (!device->brightness)