From: Dave Jones Date: Sat, 24 Jun 2006 04:33:08 +0000 (-0400) Subject: [PATCH] fix typo in acpi video brightness changes. X-Git-Tag: v2.6.18-rc1~1078 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d384ea691fe4ea8c2dd5b9b8d9042eb181776f18;p=linux-2.6 [PATCH] fix typo in acpi video brightness changes. Prevent possible null dereference due to misplaced ; Signed-off-by: Dave Jones Signed-off-by: Linus Torvalds --- diff --git a/drivers/acpi/video.c b/drivers/acpi/video.c index 86531ab4ee..e7e9a69395 100644 --- a/drivers/acpi/video.c +++ b/drivers/acpi/video.c @@ -1645,7 +1645,7 @@ static int acpi_video_bus_put_devices(struct acpi_video_bus *video) 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);