summaryrefslogtreecommitdiffstats
path: root/drivers/acpi/video.c
diff options
context:
space:
mode:
authorDave Jones <davej@redhat.com>2006-06-24 06:33:08 +0200
committerLinus Torvalds <torvalds@g5.osdl.org>2006-06-24 06:37:34 +0200
commitd384ea691fe4ea8c2dd5b9b8d9042eb181776f18 (patch)
tree1c91f0dd294b14edb6058d1236a65b997f7ed2a2 /drivers/acpi/video.c
parentMerge branch 'upstream-linus' of master.kernel.org:/pub/scm/linux/kernel/git/... (diff)
downloadlinux-d384ea691fe4ea8c2dd5b9b8d9042eb181776f18.tar.xz
linux-d384ea691fe4ea8c2dd5b9b8d9042eb181776f18.zip
[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>
Diffstat (limited to 'drivers/acpi/video.c')
-rw-r--r--drivers/acpi/video.c2
1 files changed, 1 insertions, 1 deletions
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);