diff options
| author | Masami Hiramatsu <[email protected]> | 2013-05-16 11:48:49 +0000 |
|---|---|---|
| committer | Steven Rostedt <[email protected]> | 2013-05-16 15:01:16 +0000 |
| commit | 6ed0106667d76589cb648c27edb4f4ffbf9d59ca (patch) | |
| tree | 703a6db004b022ddebdfaf186c66e5bfabc03e5f /tools/perf/util/scripting-engines/trace-event-perl.c | |
| parent | tracing/kprobes: Make print_*probe_event static (diff) | |
| download | kernel-6ed0106667d76589cb648c27edb4f4ffbf9d59ca.tar.gz kernel-6ed0106667d76589cb648c27edb4f4ffbf9d59ca.zip | |
tracing: Return -EBUSY when event_enable_func() fails to get module
Since try_module_get() returns false( = 0) when it fails to
pindown a module, event_enable_func() returns 0 which means
"succeed". This can cause a kernel panic when the entry
is removed, because the event is already released.
This fixes the bug by returning -EBUSY, because the reason
why it fails is that the module is being removed at that time.
Link: http://lkml.kernel.org/r/20130516114848.13508.97899.stgit@mhiramat-M0-7522
Cc: Srikar Dronamraju <[email protected]>
Cc: Oleg Nesterov <[email protected]>
Cc: Tom Zanussi <[email protected]>
Cc: Frederic Weisbecker <[email protected]>
Cc: Ingo Molnar <[email protected]>
Signed-off-by: Masami Hiramatsu <[email protected]>
Signed-off-by: Steven Rostedt <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-perl.c')
0 files changed, 0 insertions, 0 deletions
