mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-29 01:51:39 +00:00
ACPI / hotplug / PCI: Fix error code path in acpiphp_enumerate_slots()
One of the error code paths in acpiphp_enumerate_slots() is missing a pci_dev_put(bridge->pci_dev) call, so add it. Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com> Acked-by: Bjorn Helgaas <bhelgaas@google.com>
This commit is contained in:
parent
d0e639c9e0
commit
5d4494573c
1 changed files with 1 additions and 0 deletions
|
@ -1002,6 +1002,7 @@ void acpiphp_enumerate_slots(struct pci_bus *bus)
|
||||||
if (WARN_ON(!context)) {
|
if (WARN_ON(!context)) {
|
||||||
mutex_unlock(&acpiphp_context_lock);
|
mutex_unlock(&acpiphp_context_lock);
|
||||||
put_device(&bus->dev);
|
put_device(&bus->dev);
|
||||||
|
pci_dev_put(bridge->pci_dev);
|
||||||
kfree(bridge);
|
kfree(bridge);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue