2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-11-20 00:26:39 +08:00
linux-next/arch/sparc
David S. Miller e182c77cc2 sparc64: Fix memory leak in pci_register_iommu_region().
Found by kmemleak.

If request_resource() fails, we leak the struct resource we
allocated to represent the IOMMU mapping area.

This actually happens on sun4v machines because the IOMEM area is only
reported sans the IOMMU region, unlike all previous systems.  I'll
need to fix that at some point, but for now fix the leak.

Signed-off-by: David S. Miller <davem@davemloft.net>
2010-04-12 23:46:18 -07:00
..
boot arch/sparc/boot/*.c: Mark various internal functions static 2009-11-15 15:01:40 -08:00
configs sparc64: Update defconfig. 2010-04-03 16:18:32 -07:00
include/asm sparc64: Use a seperate counter for timer interrupts and NMI checks, like x86. 2010-04-12 22:37:07 -07:00
kernel sparc64: Fix memory leak in pci_register_iommu_region(). 2010-04-12 23:46:18 -07:00
lib sparc64: Add function graph tracer support. 2010-04-12 22:37:26 -07:00
math-emu sparc: Add alignment and emulation fault perf events. 2009-12-11 01:07:53 -08:00
mm sparc64: Fix array size reported by vmemmap_populate() 2010-04-03 13:58:45 -07:00
oprofile sparc: using HZ needs an include of linux/param.h 2009-10-05 00:46:08 -07:00
prom sparc64: Make prom entry spinlock NMI safe. 2010-03-03 09:06:03 -08:00
Kconfig sparc64: Add function graph tracer support. 2010-04-12 22:37:26 -07:00
Kconfig.debug sparc64: Kill CONFIG_STACK_DEBUG code. 2010-04-12 22:36:03 -07:00
Makefile sparc: Set UTS_MACHINE correctly. 2009-12-05 17:17:55 -08:00