]> git.karo-electronics.de Git - karo-tx-linux.git/commit
PCI/IA64: fix memleak for create pci root bus fail
authorJiang Liu <jiang.liu@huawei.com>
Thu, 6 Jun 2013 07:34:50 +0000 (15:34 +0800)
committerTony Luck <tony.luck@intel.com>
Tue, 18 Jun 2013 16:46:22 +0000 (09:46 -0700)
commitc9e391cf1b3c1c46bf79c75b3bc5677909fcd625
tree5193de45c9010e633e571ca655e7d40176c97e4d
parent429ac0995e74b24d83ca058e802faed9a562651b
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>
arch/ia64/include/asm/pci.h
arch/ia64/pci/pci.c