From: Peter Zijlstra Date: Tue, 15 Mar 2011 13:37:10 +0000 (+0100) Subject: perf: Fix tear-down of inherited group events X-Git-Tag: v2.6.37.6~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9e57b839dc6c1b156ec8d836bc05c3d48569adc5;p=pandora-kernel.git perf: Fix tear-down of inherited group events commit 38b435b16c36b0d863efcf3f07b34a6fac9873fd upstream. When destroying inherited events, we need to destroy groups too, otherwise the event iteration in perf_event_exit_task_context() will miss group siblings and we leak events with all the consequences. Reported-and-tested-by: Vince Weaver Signed-off-by: Peter Zijlstra LKML-Reference: <1300196470.2203.61.camel@twins> Signed-off-by: Ingo Molnar Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed