]> bbs.cooldavid.org Git - net-next-2.6.git/commit
xen: fix memory leak in Xen PCI MSI/MSI-X allocator.
authorJiri Slaby <jslaby@suse.cz>
Sat, 6 Nov 2010 09:06:49 +0000 (10:06 +0100)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Mon, 8 Nov 2010 16:30:00 +0000 (11:30 -0500)
commit07cf2a64c2ad3408a0e12aa4cd6040b30c09381d
treecd0dcf610b4a83fb3c67ef940e5e391860f19062
parent1688c3d6000b1183bcb604c8c85f742a579990e5
xen: fix memory leak in Xen PCI MSI/MSI-X allocator.

Stanse found that xen_setup_msi_irqs leaks memory when
xen_allocate_pirq fails. Free the memory in that fail path.

Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Cc: xen-devel@lists.xensource.com
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: "H. Peter Anvin" <hpa@zytor.com>
Cc: x86@kernel.org
arch/x86/pci/xen.c