PCI: xilinx-nwl: Free bridge resource list on failure
authorBjorn Helgaas <bhelgaas@google.com>
Tue, 31 May 2016 16:26:01 +0000 (11:26 -0500)
committerBjorn Helgaas <bhelgaas@google.com>
Mon, 20 Jun 2016 19:06:06 +0000 (14:06 -0500)
commit0bb01307557ca5042fb96bc5261b847a68203ba2
treef558613c2cc65cd7a76975ef973c61fae690204a
parent93a5b5e5876e45096d0e448bbdc4cf715f2f346e
PCI: xilinx-nwl: 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-xilinx-nwl.c