]> git.karo-electronics.de Git - linux-beck.git/commit
tracing/events: fix concurrent access to ftrace_events list, fix
authorLi Zefan <lizf@cn.fujitsu.com>
Thu, 7 May 2009 07:11:15 +0000 (15:11 +0800)
committerIngo Molnar <mingo@elte.hu>
Thu, 7 May 2009 08:07:28 +0000 (10:07 +0200)
commitd94fc523f3c35bd8013f04827e94756cbc0212f4
treeaacd8c0aaa2024437b7bfba4636afcc87f4890bf
parent5928c3cc0ffcb6894bbab6be591b7ae1786b2d87
tracing/events: fix concurrent access to ftrace_events list, fix

In filter_add_subsystem_pred() we should release event_mutex before
calling filter_free_subsystem_preds(), since both functions hold
event_mutex.

[ Impact: fix deadlock when writing invalid pred into subsystem filter ]

Signed-off-by: Li Zefan <lizf@cn.fujitsu.com>
Cc: tzanussi@gmail.com
Cc: a.p.zijlstra@chello.nl
Cc: fweisbec@gmail.com
Cc: rostedt@goodmis.org
LKML-Reference: <4A028993.7020509@cn.fujitsu.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
kernel/trace/trace_events_filter.c