diff options
author | Jiang Liu <jiang.liu@huawei.com> | 2013-06-06 15:34:50 +0800 |
---|---|---|
committer | Tony Luck <tony.luck@intel.com> | 2013-06-18 09:46:22 -0700 |
commit | c9e391cf1b3c1c46bf79c75b3bc5677909fcd625 (patch) | |
tree | 5193de45c9010e633e571ca655e7d40176c97e4d /arch/ia64/include | |
parent | 429ac0995e74b24d83ca058e802faed9a562651b (diff) | |
download | linux-c9e391cf1b3c1c46bf79c75b3bc5677909fcd625.tar.bz2 |
PCI/IA64: fix memleak for create pci root bus fail
If pci_create_root_bus() return fail, we should release
pci root info, pci controller etc.
Signed-off-by: Jiang Liu <jiang.liu@huawei.com>
Signed-off-by: Yijing Wang <wangyijing@huawei.com>
Cc: Fenghua Yu <fenghua.yu@intel.com>
Cc: Yinghai Lu <yinghai@kernel.org>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: linux-ia64@vger.kernel.org
Signed-off-by: Tony Luck <tony.luck@intel.com>
Diffstat (limited to 'arch/ia64/include')
-rw-r--r-- | arch/ia64/include/asm/pci.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/ia64/include/asm/pci.h b/arch/ia64/include/asm/pci.h index a7ebe5f97e63..80775f55f03f 100644 --- a/arch/ia64/include/asm/pci.h +++ b/arch/ia64/include/asm/pci.h @@ -89,6 +89,11 @@ extern int pci_mmap_legacy_page_range(struct pci_bus *bus, #define pci_legacy_read platform_pci_legacy_read #define pci_legacy_write platform_pci_legacy_write +struct iospace_resource { + struct list_head list; + struct resource res; +}; + struct pci_controller { void *acpi_handle; void *iommu; |