All of lore.kernel.org
 help / color / mirror / Atom feed
* fix typo in acpi video brightness changes.
@ 2006-06-24  4:33 Dave Jones
  0 siblings, 0 replies; only message in thread
From: Dave Jones @ 2006-06-24  4:33 UTC (permalink / raw)
  To: Linux Kernel; +Cc: Linus Torvalds, Andrew Morton

Prevent possible null dereference due to misplaced ;

Signed-off-by: Dave Jones <davej@redhat.com>

--- 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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2006-06-24  4:33 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-06-24  4:33 fix typo in acpi video brightness changes Dave Jones

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.