Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1210903
| From | Yinghai Lu <yinghai@kernel.org> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH v4 13/52] PCI, acpiphp: Add missing realloc list checking after resource allocation |
| Date | 2015-08-21 08:30 +0200 |
| Message-ID | <pZNZV-3SZ-49@gated-at.bofh.it> (permalink) |
| References | <pZNZT-3SZ-3@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
We check the realloc list, as list must be empty after allocation. Add missing one acpiphp driver. Signed-off-by: Yinghai Lu <yinghai@kernel.org> Cc: "Rafael J. Wysocki" <rjw@rjwysocki.net> Cc: Len Brown <lenb@kernel.org> Cc: linux-acpi@vger.kernel.org --- drivers/pci/hotplug/acpiphp_glue.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/pci/hotplug/acpiphp_glue.c b/drivers/pci/hotplug/acpiphp_glue.c index ff53856..1c7c1d7 100644 --- a/drivers/pci/hotplug/acpiphp_glue.c +++ b/drivers/pci/hotplug/acpiphp_glue.c @@ -507,6 +507,7 @@ static void enable_slot(struct acpiphp_slot *slot) } } __pci_bus_assign_resources(bus, &add_list, NULL); + BUG_ON(!list_empty(&add_list)); acpiphp_sanitize_bus(bus); pcie_bus_configure_settings(bus); -- 1.8.4.5 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Back to linux.kernel | Previous | Next — Next in thread | Find similar | Unroll thread
[PATCH v4 13/52] PCI, acpiphp: Add missing realloc list checking after resource allocation Yinghai Lu <yinghai@kernel.org> - 2015-08-21 08:30 +0200
Re: [PATCH v4 13/52] PCI, acpiphp: Add missing realloc list checking after resource allocation "Rafael J. Wysocki" <rjw@rjwysocki.net> - 2015-08-24 23:50 +0200
Re: [PATCH v4 13/52] PCI, acpiphp: Add missing realloc list checking after resource allocation Yinghai Lu <yinghai@kernel.org> - 2015-08-25 00:20 +0200
Re: [PATCH v4 13/52] PCI, acpiphp: Add missing realloc list checking after resource allocation "Rafael J. Wysocki" <rjw@rjwysocki.net> - 2015-08-25 02:20 +0200
Re: [PATCH v4 13/52] PCI, acpiphp: Add missing realloc list checking after resource allocation Yinghai Lu <yinghai@kernel.org> - 2015-08-25 02:20 +0200
csiph-web