diff options
author | Ingo Molnar <mingo@elte.hu> | 2010-08-05 08:46:15 +0200 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2010-08-05 08:46:15 +0200 |
commit | fc9ea5a1e53ee54f681e226d735008e2a6f8f470 (patch) | |
tree | fe59eb9aef5d797ae387885e6833c9c4d05735ad /kernel | |
parent | 61be7fdec2f51b99570cd5dcc30c7848c8e56513 (diff) | |
parent | 9da79ab83ee33ddc1fdd0858fd3d70925a1bde99 (diff) | |
download | op-kernel-dev-fc9ea5a1e53ee54f681e226d735008e2a6f8f470.zip op-kernel-dev-fc9ea5a1e53ee54f681e226d735008e2a6f8f470.tar.gz |
Merge branch 'perf/core' of git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux-2.6 into perf/core
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/trace/trace_kprobe.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/kernel/trace/trace_kprobe.c b/kernel/trace/trace_kprobe.c index 1b79d1c..8b27c98 100644 --- a/kernel/trace/trace_kprobe.c +++ b/kernel/trace/trace_kprobe.c @@ -925,14 +925,17 @@ static int create_trace_probe(int argc, char **argv) pr_info("Delete command needs an event name.\n"); return -EINVAL; } + mutex_lock(&probe_lock); tp = find_probe_event(event, group); if (!tp) { + mutex_unlock(&probe_lock); pr_info("Event %s/%s doesn't exist.\n", group, event); return -ENOENT; } /* delete an event */ unregister_trace_probe(tp); free_trace_probe(tp); + mutex_unlock(&probe_lock); return 0; } |