https://github.com/torvalds/linux
Revision 7ad1437d6ace0e450a6c1167720608ad660b191d authored by Thomas Gleixner on 27 December 2017, 18:45:31 UTC, committed by Thomas Gleixner on 27 December 2017, 19:23:59 UTC
A recent commit introduced an extra merge_attr() call in the skylake
branch, which causes a memory leak.

Store the pointer to the extra allocated memory and free it at the end of
the function.

Fixes: a5df70c354c2 ("perf/x86: Only show format attributes when supported")
Reported-by: Tommi Rantala <tommi.t.rantala@nokia.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: Andi Kleen <ak@linux.intel.com>
1 parent 2e36463
History
Tip revision: 7ad1437d6ace0e450a6c1167720608ad660b191d authored by Thomas Gleixner on 27 December 2017, 18:45:31 UTC
perf/x86/intel: Plug memory leak in intel_pmu_init()
Tip revision: 7ad1437
File Mode Size
Kconfig -rw-r--r-- 2.7 KB
Makefile -rw-r--r-- 457 bytes
addr.c -rw-r--r-- 3.9 KB
addr.h -rw-r--r-- 654 bytes
atm_misc.c -rw-r--r-- 2.6 KB
atm_sysfs.c -rw-r--r-- 4.2 KB
br2684.c -rw-r--r-- 23.1 KB
clip.c -rw-r--r-- 22.4 KB
common.c -rw-r--r-- 21.4 KB
common.h -rw-r--r-- 1.6 KB
ioctl.c -rw-r--r-- 9.3 KB
lec.c -rw-r--r-- 59.7 KB
lec.h -rw-r--r-- 5.1 KB
lec_arpc.h -rw-r--r-- 3.0 KB
mpc.c -rw-r--r-- 38.2 KB
mpc.h -rw-r--r-- 1.9 KB
mpoa_caches.c -rw-r--r-- 14.3 KB
mpoa_caches.h -rw-r--r-- 3.1 KB
mpoa_proc.c -rw-r--r-- 7.2 KB
pppoatm.c -rw-r--r-- 15.6 KB
proc.c -rw-r--r-- 11.5 KB
protocols.h -rw-r--r-- 418 bytes
pvc.c -rw-r--r-- 3.8 KB
raw.c -rw-r--r-- 1.9 KB
resources.c -rw-r--r-- 9.9 KB
resources.h -rw-r--r-- 1.0 KB
signaling.c -rw-r--r-- 6.2 KB
signaling.h -rw-r--r-- 877 bytes
svc.c -rw-r--r-- 16.0 KB

back to top