PCI: xgene: Free bridge resource list on failure
authorBjorn Helgaas <bhelgaas@google.com>
Tue, 31 May 2016 16:07:30 +0000 (11:07 -0500)
committerBjorn Helgaas <bhelgaas@google.com>
Mon, 20 Jun 2016 19:06:05 +0000 (14:06 -0500)
commit11659a1d54b670f05ff91627934aaadf376db937
tree80858dbf97bf6bb0fd99e6066fa4d060d28a243e
parentc3245a5664003360bd9deda9777be7cea4fe9982
PCI: xgene: 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/pci-xgene.c