]> git.baikalelectronics.ru Git - kernel.git/commit
ftrace: Fix unmatched locking in ftrace_regex_write()
authorLi Zefan <lizf@cn.fujitsu.com>
Tue, 3 Nov 2009 00:55:38 +0000 (08:55 +0800)
committerSteven Rostedt <rostedt@goodmis.org>
Wed, 4 Nov 2009 06:42:10 +0000 (01:42 -0500)
commited146b25942b428f8e8056587b7638ce76573c2f
tree36b3355b5d53057accb92000ee5b3986d5a05a8b
parentf7112949f6a4cd6883d66c882d568c2197321de6
ftrace: Fix unmatched locking in ftrace_regex_write()

When a command is passed to the set_ftrace_filter, then
the ftrace_regex_lock is still held going back to user space.

 # echo 'do_open : foo' > set_ftrace_filter
 (still holding ftrace_regex_lock when returning to user space!)

Signed-off-by: Li Zefan <lizf@cn.fujitsu.com>
LKML-Reference: <4AEF7F8A.3080300@cn.fujitsu.com>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
kernel/trace/ftrace.c