Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[PATCH] fix typo in acpi video brightness changes.

Prevent possible null dereference due to misplaced ;

Signed-off-by: Dave Jones <davej@redhat.com>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>

authored by

Dave Jones and committed by
Linus Torvalds
d384ea69 6edad161

+1 -1
+1 -1
drivers/acpi/video.c
··· 1645 1645 printk(KERN_WARNING PREFIX 1646 1646 "hhuuhhuu bug in acpi video driver.\n"); 1647 1647 1648 - if (data->brightness); 1648 + if (data->brightness) 1649 1649 kfree(data->brightness->levels); 1650 1650 kfree(data->brightness); 1651 1651 kfree(data);