fix typo in acpi video brightness changes.

From: Dave Jones
Date: Sat Jun 24 2006 - 00:38:00 EST


Prevent possible null dereference due to misplaced ;

Signed-off-by: Dave Jones <davej@xxxxxxxxxx>

--- linux-2.6/drivers/acpi/video.c~ 2006-06-24 00:30:39.000000000 -0400
+++ linux-2.6/drivers/acpi/video.c 2006-06-24 00:31:04.000000000 -0400
@@ -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);

--
http://www.codemonkey.org.uk
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/