summaryrefslogtreecommitdiffstats
path: root/arch/arm
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2017-07-14 21:36:20 +0200
committerLinus Torvalds <torvalds@linux-foundation.org>2017-07-14 21:36:20 +0200
commit2931dc7d9daf7addc10a126aedf1e630a1a05b49 (patch)
treeca97c5e0e9baf5eeec81e8b555339b9cbeade532 /arch/arm
parentMerge tag 'befs-v4.13-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/l... (diff)
parentPCI: rockchip: Check for pci_scan_root_bus_bridge() failure correctly (diff)
downloadlinux-2931dc7d9daf7addc10a126aedf1e630a1a05b49.tar.xz
linux-2931dc7d9daf7addc10a126aedf1e630a1a05b49.zip
Merge tag 'pci-v4.13-fixes-1' of git://git.kernel.org/pub/scm/linux/kernel/git/helgaas/pci
Pull PCI fixes from Bjorn Helgaas: - fix a typo that broke Rockchip enumeration - fix a new memory leak in the ARM host bridge failure path * tag 'pci-v4.13-fixes-1' of git://git.kernel.org/pub/scm/linux/kernel/git/helgaas/pci: PCI: rockchip: Check for pci_scan_root_bus_bridge() failure correctly ARM/PCI: Fix pcibios_init_resource() struct pci_host_bridge leak
Diffstat (limited to 'arch/arm')
-rw-r--r--arch/arm/kernel/bios32.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/kernel/bios32.c b/arch/arm/kernel/bios32.c
index 56dc1a3a33b4..c1809fb549dd 100644
--- a/arch/arm/kernel/bios32.c
+++ b/arch/arm/kernel/bios32.c
@@ -480,7 +480,7 @@ static void pcibios_init_hw(struct device *parent, struct hw_pci *hw,
ret = pcibios_init_resource(nr, sys, hw->io_optional);
if (ret) {
- kfree(sys);
+ pci_free_host_bridge(bridge);
break;
}