tree ced42046a63f705674b77af4e5a650cf09252e0c
parent f4224153098c1103db592b28f304beeb9c02481b
author Adrian Bunk <[EMAIL PROTECTED]> Thu, 31 Mar 2005 08:31:35 -0500
committer Len Brown <[EMAIL PROTECTED]> Tue, 12 Jul 2005 07:58:10 -0400

[ACPI] fix potential NULL dereference in acpi/video.c

Found-by: Adrian Bunk <[EMAIL PROTECTED]>
Signed-off-by: Len Brown <[EMAIL PROTECTED]>

 drivers/acpi/video.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/acpi/video.c b/drivers/acpi/video.c
--- 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);
-
To unsubscribe from this list: send the line "unsubscribe bk-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to