linux/arch
Colin Ian King 629eb703d3 perf/x86/intel/uncore: Fix memory leaks on allocation failures
Currently if an allocation fails then the error return paths
don't free up any currently allocated pmus[].boxes and pmus causing
a memory leak.  Add an error clean up exit path that frees these
objects.

Detected by CoverityScan, CID#711632 ("Resource Leak")

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Acked-by: Peter Zijlstra <peterz@infradead.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: kernel-janitors@vger.kernel.org
Fixes: 087bfbb032 ("perf/x86: Add generic Intel uncore PMU support")
Link: http://lkml.kernel.org/r/20171009172655.6132-1-colin.king@canonical.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
2017-10-10 12:51:07 +02:00
..
alpha alpha: fix build failures 2017-10-03 17:54:23 -07:00
arc
arm STM32 fixes for v4.14: 2017-10-04 10:31:00 -07:00
arm64 Amlogic 64-bit DT updates for v4.14 (round 3) 2017-10-04 10:30:39 -07:00
blackfin
c6x
cris
frv
h8300
hexagon
ia64
m32r m32r: fix build failure 2017-10-03 17:54:26 -07:00
m68k
metag
microblaze
mips
mn10300
nios2
openrisc
parisc
powerpc rapidio: remove global irq spinlocks from the subsystem 2017-10-03 17:54:24 -07:00
s390
score
sh sh: sh7269: remove nonexistent GPIO_PH[0-7] to fix pinctrl registration 2017-10-03 17:54:24 -07:00
sparc
tile
um
unicore32
x86 perf/x86/intel/uncore: Fix memory leaks on allocation failures 2017-10-10 12:51:07 +02:00
xtensa
.gitignore
Kconfig