Skip to content
Snippets Groups Projects
Commit 7334571f authored by Adrian Bunk's avatar Adrian Bunk Committed by Len Brown
Browse files

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

parent f4224153
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment