ACPI: Set length even for TYPE_END_TAG acpi resource
authorYinghai Lu <yinghai@kernel.org>
Sat, 23 Mar 2013 19:16:37 +0000 (19:16 +0000)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Sun, 24 Mar 2013 00:00:38 +0000 (01:00 +0100)
commitf084dbb939070281be7c882db63a4a428c51fcf4
treebfda012c8613e30ff2bd6e41255af7d3533b497e
parenteccc534378e74030b31cfe10f1188df06f7f680a
ACPI: Set length even for TYPE_END_TAG acpi resource

Found with a network device in QEMU/KVM guest not working anymore.

Bisected to commit c13085e5
    ACPICA: Resource Mgr: Prevent infinite loops in resource walks

That commit will check acpi_resource length strictly which causes
acpi_set_current_resources to return failure and IRQ for PCI
devices is not set properly.

Set length for all those TYPE_END_TAG acpi_resources.

[rjw: Changelog]
Bisected-by: Yinghai Lu <yinghai@kernel.org>
Signed-off-by: Yinghai Lu <yinghai@kernel.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/pci_link.c
drivers/platform/x86/sony-laptop.c
drivers/pnp/pnpacpi/rsparser.c