diff options
Diffstat (limited to 'kernel/trace/trace_events.c')
-rw-r--r-- | kernel/trace/trace_events.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/kernel/trace/trace_events.c b/kernel/trace/trace_events.c index 7a0cf68027cc..27963e2bf4bf 100644 --- a/kernel/trace/trace_events.c +++ b/kernel/trace/trace_events.c | |||
@@ -2072,8 +2072,10 @@ event_enable_func(struct ftrace_hash *hash, | |||
2072 | out_reg: | 2072 | out_reg: |
2073 | /* Don't let event modules unload while probe registered */ | 2073 | /* Don't let event modules unload while probe registered */ |
2074 | ret = try_module_get(file->event_call->mod); | 2074 | ret = try_module_get(file->event_call->mod); |
2075 | if (!ret) | 2075 | if (!ret) { |
2076 | ret = -EBUSY; | ||
2076 | goto out_free; | 2077 | goto out_free; |
2078 | } | ||
2077 | 2079 | ||
2078 | ret = __ftrace_event_enable_disable(file, 1, 1); | 2080 | ret = __ftrace_event_enable_disable(file, 1, 1); |
2079 | if (ret < 0) | 2081 | if (ret < 0) |