Message ID | Pine.LNX.4.64.0907281756010.28189@ask.diku.dk (mailing list archive) |
---|---|
State | Superseded, archived |
Headers | show |
diff --git a/drivers/acpi/video.c b/drivers/acpi/video.c index 8851315..29788db 100644 --- a/drivers/acpi/video.c +++ b/drivers/acpi/video.c @@ -982,6 +982,8 @@ static void acpi_video_device_find_cap(struct acpi_video_device *device) sprintf(name, "acpi_video%d", count++); device->backlight = backlight_device_register(name, NULL, device, &acpi_backlight_ops); + if (IS_ERR(device->backlight)) + return; device->backlight->props.max_brightness = device->brightness->count-3; kfree(name);