From: Dave Jones Prevent possible null dereference due to misplaced ; Signed-off-by: Dave Jones Cc: "Brown, Len" Signed-off-by: Andrew Morton --- drivers/acpi/video.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff -puN drivers/acpi/video.c~fix-typo-in-acpi-video-brightness-changes drivers/acpi/video.c --- a/drivers/acpi/video.c~fix-typo-in-acpi-video-brightness-changes +++ a/drivers/acpi/video.c @@ -1645,7 +1645,7 @@ static int acpi_video_bus_put_devices(st printk(KERN_WARNING PREFIX "hhuuhhuu bug in acpi video driver.\n"); - if (data->brightness); + if (data->brightness) kfree(data->brightness->levels); kfree(data->brightness); kfree(data); _