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
Raw File
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
protocols.h
/* SPDX-License-Identifier: GPL-2.0 */
/* net/atm/protocols.h - ATM protocol handler entry points */

/* Written 1995-1997 by Werner Almesberger, EPFL LRC */


#ifndef NET_ATM_PROTOCOLS_H
#define NET_ATM_PROTOCOLS_H

int atm_init_aal0(struct atm_vcc *vcc);	/* "raw" AAL0 */
int atm_init_aal34(struct atm_vcc *vcc);/* "raw" AAL3/4 transport */
int atm_init_aal5(struct atm_vcc *vcc);	/* "raw" AAL5 transport */

#endif
back to top