summaryrefslogtreecommitdiff
path: root/include/linux/pci.h
diff options
context:
space:
mode:
authorLorenzo Pieralisi <lorenzo.pieralisi@arm.com>2017-06-28 23:13:54 +0300
committerBjorn Helgaas <bhelgaas@google.com>2017-06-28 23:13:54 +0300
commit792abc6e2f5a5ab996bf6cc1947b382dda29a82d (patch)
tree754daadf1829f0e0f94cb12a6fcd6edc965768b4 /include/linux/pci.h
parent9aa17a772084e192a2364340794f0d44ac73dd4c (diff)
downloadlinux-792abc6e2f5a5ab996bf6cc1947b382dda29a82d.tar.xz
PCI: tegra: Fix host bridge memory leakage
When probing the PCI host controller driver, if an error occurs, the probe function code does not free memory allocated for the struct pci_host_bridge resulting in memory leakage. Move the struct pci_host_bridge allocation over to the respective devm interface to fix the issue. Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com> Cc: Arnd Bergmann <arnd@arndb.de>
Diffstat (limited to 'include/linux/pci.h')
0 files changed, 0 insertions, 0 deletions