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
6lowpan_i.h -rw-r--r-- 1009 bytes
Kconfig -rw-r--r-- 2.7 KB
Makefile -rw-r--r-- 866 bytes
core.c -rw-r--r-- 4.4 KB
debugfs.c -rw-r--r-- 8.0 KB
iphc.c -rw-r--r-- 36.7 KB
ndisc.c -rw-r--r-- 6.7 KB
nhc.c -rw-r--r-- 5.3 KB
nhc.h -rw-r--r-- 4.3 KB
nhc_dest.c -rw-r--r-- 860 bytes
nhc_fragment.c -rw-r--r-- 868 bytes
nhc_ghc_ext_dest.c -rw-r--r-- 880 bytes
nhc_ghc_ext_frag.c -rw-r--r-- 892 bytes
nhc_ghc_ext_hop.c -rw-r--r-- 868 bytes
nhc_ghc_ext_route.c -rw-r--r-- 885 bytes
nhc_ghc_icmpv6.c -rw-r--r-- 823 bytes
nhc_ghc_udp.c -rw-r--r-- 781 bytes
nhc_hop.c -rw-r--r-- 843 bytes
nhc_ipv6.c -rw-r--r-- 807 bytes
nhc_mobility.c -rw-r--r-- 868 bytes
nhc_routing.c -rw-r--r-- 855 bytes
nhc_udp.c -rw-r--r-- 5.7 KB

back to top