PCI: Fix devm_pci_alloc_host_bridge() memory leak
authorJan Kiszka <jan.kiszka@siemens.com>
Tue, 15 May 2018 09:07:01 +0000 (11:07 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 3 Aug 2018 05:50:27 +0000 (07:50 +0200)
commit233cba023484e3f4ff68d01204eae85ad427ec0d
tree3f216919cd90e7a8aebfa13bc8cd1ef83b7fda5e
parentf559bb20c1aeedb0a9efe321b3e42d97556aa970
PCI: Fix devm_pci_alloc_host_bridge() memory leak

[ Upstream commit 3bbce531788719749520f28052cabdef16af6b16 ]

Fix a memory leak by freeing the PCI resource list in
devm_pci_release_host_bridge_dev().

Fixes: 5c3f18cce083 ("PCI: Add devm_pci_alloc_host_bridge() interface")
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/pci/probe.c