Skip to contentSkip to conversation

fix typo in acpi video brightness changes.

PATCH Dave Jones 1 participant 1 message Jun 24, 2006 ACPI

lore
Share & tools
lore

Dave Jones

author
#0 lore raw

Prevent possible null dereference due to misplaced ;

drivers/acpi/video.c renamed from drivers/acpi/video.c~ +1 -1
@@ -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);
Signature · 1 line
http://www.codemonkey.org.uk