android_kernel_motorola_sm6375/drivers/of
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Lorenzo Pieralisi d2be00c0fb of/pci: Free resources on failure in of_pci_get_host_bridge_resources()
In the function of_pci_get_host_bridge_resources() if the parsing of ranges
fails, previously allocated resources inclusive of bus_range are not freed
and are not expected to be freed by the function caller on error return.

This patch fixes the issues by adding code that properly frees resources
and bus_range before exiting the function with an error return value.

Fixes: cbe4097f8a ("of/pci: Add support for parsing PCI host bridge resources from DT")
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Acked-by: Liviu Dudau <liviu.dudau@arm.com>
CC: Arnd Bergmann <arnd@arndb.de>
CC: Rob Herring <robh+dt@kernel.org>
2015-01-28 17:08:20 -06:00
..
unittest-data of/overlay: Add overlay unittests 2014-11-24 22:25:13 +00:00
address.c Linux 3.18-rc6 2014-11-24 14:50:07 +00:00
base.c Devicetree changes for v3.19 2014-12-11 13:06:58 -08:00
device.c
dynamic.c of/reconfig: Always use the same structure for notifiers 2014-11-24 22:25:03 +00:00
fdt.c Devicetree changes for v3.19 2014-12-11 13:06:58 -08:00
fdt_address.c
irq.c of/irq: Export of_irq_get() 2014-11-10 09:34:57 +01:00
Kconfig of: remove select of non-existant OF_DEVICE config symbol 2014-11-26 15:19:43 +00:00
Makefile of/overlay: Introduce DT overlay support 2014-11-24 22:25:10 +00:00
of_mdio.c net: phy: adjust fixed_phy_register() return value 2014-10-07 13:06:45 -04:00
of_mtd.c
of_net.c
of_pci.c of/pci: Free resources on failure in of_pci_get_host_bridge_resources() 2015-01-28 17:08:20 -06:00
of_pci_irq.c
of_private.h of: Refactor __of_node_alloc() into __of_node_dup() 2014-11-24 22:24:41 +00:00
of_reserved_mem.c drivers: of: add return value to of_reserved_mem_device_init() 2014-10-29 16:33:14 -07:00
overlay.c of/overlay: Introduce DT overlay support 2014-11-24 22:25:10 +00:00
pdt.c of: Eliminate of_allnodes list 2014-11-04 13:29:38 +00:00
platform.c ARM: SoC/iommu configuration for 3.19 2014-12-16 14:53:01 -08:00
resolver.c of/resolver: Switch to new local fixups format. 2014-11-24 22:24:50 +00:00
unittest.c of: Delete unnecessary check before calling "of_node_put()" 2014-12-03 23:12:41 +00:00