We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1432afb commit 9687bbfCopy full SHA for 9687bbf
kernel/trace/ftrace.c
@@ -5288,7 +5288,7 @@ static void release_probe(struct ftrace_func_probe *probe)
5288
{
5289
struct ftrace_probe_ops *probe_ops;
5290
5291
- mutex_lock(&ftrace_lock);
+ guard(mutex)(&ftrace_lock);
5292
5293
WARN_ON(probe->ref <= 0);
5294
@@ -5306,7 +5306,6 @@ static void release_probe(struct ftrace_func_probe *probe)
5306
list_del(&probe->list);
5307
kfree(probe);
5308
}
5309
- mutex_unlock(&ftrace_lock);
5310
5311
5312
static void acquire_probe_locked(struct ftrace_func_probe *probe)
0 commit comments