perf: Fix task_struct reference leak
authorPeter Zijlstra <a.p.zijlstra@chello.nl>
Mon, 28 Mar 2011 11:13:56 +0000 (13:13 +0200)
committerIngo Molnar <mingo@elte.hu>
Thu, 31 Mar 2011 11:02:56 +0000 (13:02 +0200)
commitfd1edb3aa2c1d92618d8f0c6d15d44ea41fcac6a
treeae456f2e42966042790809d7590c31736aa05557
parentab711fe08297de1485fff0a366e6db8828cafd6a
perf: Fix task_struct reference leak

sys_perf_event_open() had an imbalance in the number of task refs it
took causing memory leakage

Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Oleg Nesterov <oleg@redhat.com>
Cc: stable@kernel.org # .37+
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
LKML-Reference: <new-submission>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
kernel/perf_event.c