PCI: designware: Free bridge resource list on failure
authorBjorn Helgaas <bhelgaas@google.com>
Tue, 31 May 2016 16:14:08 +0000 (11:14 -0500)
committerBjorn Helgaas <bhelgaas@google.com>
Mon, 20 Jun 2016 19:06:05 +0000 (14:06 -0500)
commit27d9cb7ed2643cee96c4af5cfc4b941f68f42395
tree8a0910c46db081fb636fe1b88c495a69fd565f0e
parent950334bcf17a6ab55ce13d3bdf050f7b429320d5
PCI: designware: Free bridge resource list on failure

of_pci_get_host_bridge_resources() allocates a list of resources for host
bridge windows.  If we fail after allocating that list, free it before we
return error.

Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/host/pcie-designware.c