![]() | |||||||||||||
Messages in this thread Patch in this message |
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 - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/ | ||||||||||||
| Last update: 2006-06-24 04:36 [from the cache] ©2003-2008 | |||||||||||||