From: Lorenzo Pieralisi Date: Wed, 11 Feb 2015 04:58:35 +0000 (+0000) Subject: of/pci: Remove duplicate kfree in of_pci_get_host_bridge_resources() X-Git-Tag: fixes-v4.0-rc1~60^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=feb28979c137ba3f649ad36fc27c85c64c111f78;p=pandora-kernel.git of/pci: Remove duplicate kfree in of_pci_get_host_bridge_resources() 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 Signed-off-by: Lorenzo Pieralisi Signed-off-by: Bjorn Helgaas CC: Rafael J. Wysocki --- Reading git-diff-tree failed