From: Yinghai Lu Date: Tue, 3 Apr 2012 01:31:53 +0000 (-0700) Subject: x86/PCI: fix memleak with get_current_resources() X-Git-Tag: v3.5-rc1~179^2~9^2~9 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=baa495d9de2af97310128bfc0e365a813b63d5bb;p=pandora-kernel.git x86/PCI: fix memleak with get_current_resources() In pci_scan_acpi_root(), when pci_use_crs is set, get_current_resources() is used to get pci_root_info, and it will allocate name and resource array. Later if pci_create_root_bus() can not create bus (could be already there...) it will only free bus res list, but the name and res array is not freed. Let get_current_resource() take info pointer instead of using local info. Signed-off-by: Yinghai Lu Signed-off-by: Bjorn Helgaas --- Reading git-diff-tree failed