summaryrefslogtreecommitdiffstats
path: root/arch/powerpc
diff options
context:
space:
mode:
authorOleg Nesterov <oleg@redhat.com>2011-01-19 19:22:28 +0100
committerIngo Molnar <mingo@elte.hu>2011-01-19 20:04:28 +0100
commit8550d7cb6ed6c89add49c3b6ad4c753ab8a3d7f9 (patch)
tree9942aa32e7706bbb9bf52b9aecd542008f50d5aa /arch/powerpc
parentdbe08d82ce3967ccdf459f7951d02589cf967300 (diff)
downloadlinux-8550d7cb6ed6c89add49c3b6ad4c753ab8a3d7f9.tar.gz
linux-8550d7cb6ed6c89add49c3b6ad4c753ab8a3d7f9.tar.bz2
linux-8550d7cb6ed6c89add49c3b6ad4c753ab8a3d7f9.zip
perf: Fix perf_event_init_task()/perf_event_free_task() interaction
perf_event_init_task() should clear child->perf_event_ctxp[] before anything else. Otherwise, if perf_event_init_context(perf_hw_context) fails, perf_event_free_task() can free perf_event_ctxp[perf_sw_context] copied from parent->perf_event_ctxp[] by dup_task_struct(). Also move the initialization of perf_event_mutex and perf_event_list from perf_event_init_context() to perf_event_init_context(). Signed-off-by: Oleg Nesterov <oleg@redhat.com> Acked-by: Peter Zijlstra <a.p.zijlstra@chello.nl> Cc: Alan Stern <stern@rowland.harvard.edu> Cc: Arnaldo Carvalho de Melo <acme@redhat.com> Cc: Frederic Weisbecker <fweisbec@gmail.com> Cc: Paul Mackerras <paulus@samba.org> Cc: Prasad <prasad@linux.vnet.ibm.com> Cc: Roland McGrath <roland@redhat.com> LKML-Reference: <20110119182228.GC12183@redhat.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/powerpc')
0 files changed, 0 insertions, 0 deletions