diff options
author | 2017-07-10 13:34:08 +0100 | |
---|---|---|
committer | 2017-07-10 09:33:14 -0500 | |
commit | f01fc4177352614743ce3fe289687387fcf9e6c6 (patch) | |
tree | 0ee4a920955bfdf490b3b1ac920b2b66c9db753e /tools/perf/scripts/python/call-graph-from-sql.py | |
parent | Merge tag 'drm-for-v4.13' of git://people.freedesktop.org/~airlied/linux (diff) | |
download | linux-dev-f01fc4177352614743ce3fe289687387fcf9e6c6.tar.xz linux-dev-f01fc4177352614743ce3fe289687387fcf9e6c6.zip |
ARM/PCI: Fix pcibios_init_resource() struct pci_host_bridge leak
Since commit 97ad2bdcbe85 ("ARM/PCI: Convert PCI scan API to
pci_scan_root_bus_bridge()") the space for struct pci_sys_data is allocated
by pci_alloc_host_bridge() as part of the struct pci_host_bridge.
Therefore, failure paths must deallocate the entire pci_host_bridge by
using pci_free_host_bridge().
Fixes: 97ad2bdcbe85 ("ARM/PCI: Convert PCI scan API to pci_scan_root_bus_bridge()")
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
[bhelgaas: changelog]
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Cc: Jason Cooper <jason@lakedaemon.net>
Cc: Russell King <linux@armlinux.org.uk>
Cc: Andrew Lunn <andrew@lunn.ch>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-sql.py')
0 files changed, 0 insertions, 0 deletions