diff options
author | Dave Jones <davej@redhat.com> | 2006-06-24 00:33:08 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-06-24 00:37:34 -0400 |
commit | d384ea691fe4ea8c2dd5b9b8d9042eb181776f18 (patch) | |
tree | 1c91f0dd294b14edb6058d1236a65b997f7ed2a2 /drivers | |
parent | 6edad161cd4dfe1df772e7a74ab63cab53b5e8c1 (diff) |
[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')
-rw-r--r-- | drivers/acpi/video.c | 2 |
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) | |||
1645 | printk(KERN_WARNING PREFIX | 1645 | printk(KERN_WARNING PREFIX |
1646 | "hhuuhhuu bug in acpi video driver.\n"); | 1646 | "hhuuhhuu bug in acpi video driver.\n"); |
1647 | 1647 | ||
1648 | if (data->brightness); | 1648 | if (data->brightness) |
1649 | kfree(data->brightness->levels); | 1649 | kfree(data->brightness->levels); |
1650 | kfree(data->brightness); | 1650 | kfree(data->brightness); |
1651 | kfree(data); | 1651 | kfree(data); |