perf: Fix free_event()
authorPeter Zijlstra <a.p.zijlstra@chello.nl>
Mon, 13 Sep 2010 09:15:58 +0000 (11:15 +0200)
committerIngo Molnar <mingo@elte.hu>
Mon, 13 Sep 2010 15:08:42 +0000 (17:08 +0200)
commit0c67b40872326a5340cab51d79a192a5fbaeb484
treee92b420dcb1375e159842d8ffa03a5230976ab3a
parentcde8e88498c8de69271fcb6d4dd974979368fa67
perf: Fix free_event()

With the context rework stuff we can actually end up freeing an event
before it gets attached to a context.

Reported-by: Cyrill Gorcunov <gorcunov@gmail.com>
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