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-- 614 bytes
Makefile -rw-r--r-- 191 bytes
af_smc.c -rw-r--r-- 35.1 KB
smc.h -rw-r--r-- 7.9 KB
smc_cdc.c -rw-r--r-- 8.6 KB
smc_cdc.h -rw-r--r-- 5.8 KB
smc_clc.c -rw-r--r-- 8.6 KB
smc_clc.h -rw-r--r-- 3.9 KB
smc_close.c -rw-r--r-- 11.7 KB
smc_close.h -rw-r--r-- 717 bytes
smc_core.c -rw-r--r-- 18.7 KB
smc_core.h -rw-r--r-- 6.4 KB
smc_diag.c -rw-r--r-- 5.8 KB
smc_ib.c -rw-r--r-- 13.8 KB
smc_ib.h -rw-r--r-- 2.8 KB
smc_llc.c -rw-r--r-- 4.9 KB
smc_llc.h -rw-r--r-- 1.2 KB
smc_pnet.c -rw-r--r-- 12.6 KB
smc_pnet.h -rw-r--r-- 517 bytes
smc_rx.c -rw-r--r-- 6.2 KB
smc_rx.h -rw-r--r-- 472 bytes
smc_tx.c -rw-r--r-- 14.6 KB
smc_tx.h -rw-r--r-- 959 bytes
smc_wr.c -rw-r--r-- 17.8 KB
smc_wr.h -rw-r--r-- 3.3 KB

back to top