of/pci: Remove duplicate kfree in of_pci_get_host_bridge_resources()
authorLorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Wed, 11 Feb 2015 04:58:35 +0000 (04:58 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 10 Nov 2018 15:39:18 +0000 (07:39 -0800)
commit7df4d34dadcef22d85594cb55195de850c78369e
treef0e894b0dc236039af2c2402f0593a6cbb667d56
parent3379b506444e7761099a70b0e5b7970c18d3cdd7
of/pci: Remove duplicate kfree in of_pci_get_host_bridge_resources()

[ Upstream commit feb28979c137ba3f649ad36fc27c85c64c111f78 ]

Commit d2be00c0fb5a ("of/pci: Free resources on failure in
of_pci_get_host_bridge_resources()") fixed the error path so it frees
everything on the "resources" list.  That list includes the bus_range, so
we should not free it again.

Remove the superfluous free of bus_range.

[bhelgaas: changelog]
Fixes: d2be00c0fb5a ("of/pci: Free resources on failure in of_pci_get_host_bridge_resources()")
Reported-by: Jiang Liu <jiang.liu@linux.intel.com>
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
CC: Rafael J. Wysocki <rjw@rjwysocki.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/of/of_pci.c