]> git.baikalelectronics.ru Git - kernel.git/commit
PCI: xilinx: Free bridge resource list on failure
authorBjorn Helgaas <bhelgaas@google.com>
Tue, 31 May 2016 16:49:14 +0000 (11:49 -0500)
committerBjorn Helgaas <bhelgaas@google.com>
Mon, 20 Jun 2016 19:06:06 +0000 (14:06 -0500)
commitf0003b73f00636f6735009bb15e40ff87b572ea5
tree33063c704979612db32ea1281993e60369dd5faf
parent13f37400acea7bb2c7dc2aeec3c410bb30ce44c6
PCI: xilinx: 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.c