summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorAdrian Bunk <bunk@stusta.de>2005-03-31 05:31:35 +0200
committerLen Brown <len.brown@intel.com>2005-07-12 05:58:10 +0200
commit7334571f724df7a19f48cc974e991e00afde1e2f (patch)
treeced42046a63f705674b77af4e5a650cf09252e0c /drivers
parent[ACPI] check for kmalloc failure in toshiba_acpi.c (diff)
downloadlinux-7334571f724df7a19f48cc974e991e00afde1e2f.tar.xz
linux-7334571f724df7a19f48cc974e991e00afde1e2f.zip
[ACPI] fix potential NULL dereference in acpi/video.c
Found-by: Adrian Bunk <bunk@stusta.de> Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'drivers')
-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 71fa1011715f..b3b352b8330a 100644
--- a/drivers/acpi/video.c
+++ b/drivers/acpi/video.c
@@ -1585,7 +1585,7 @@ acpi_video_switch_output(
ACPI_FUNCTION_TRACE("acpi_video_switch_output");
list_for_each_safe(node, next, &video->video_device_list) {
- struct acpi_video_device * dev = container_of(node, struct acpi_video_device, entry);
+ dev = container_of(node, struct acpi_video_device, entry);
status = acpi_video_device_get_state(dev, &state);
if (state & 0x2){
dev_next = container_of(node->next, struct acpi_video_device, entry);