From: Dave Jones Date: Sat, 24 Jun 2006 04:33:08 +0000 (-0400) Subject: [PATCH] fix typo in acpi video brightness changes. X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=d384ea691fe4ea8c2dd5b9b8d9042eb181776f18;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git [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 86531ab4ee55..e7e9a693953a 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);