File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -1381,17 +1381,17 @@ void unregister_ftrace_graph(struct fgraph_ops *gops)
1381
1381
{
1382
1382
int command = 0 ;
1383
1383
1384
- mutex_lock (& ftrace_lock );
1384
+ guard ( mutex ) (& ftrace_lock );
1385
1385
1386
1386
if (unlikely (!ftrace_graph_active ))
1387
- goto out ;
1387
+ return ;
1388
1388
1389
1389
if (unlikely (gops -> idx < 0 || gops -> idx >= FGRAPH_ARRAY_SIZE ||
1390
1390
fgraph_array [gops -> idx ] != gops ))
1391
- goto out ;
1391
+ return ;
1392
1392
1393
1393
if (fgraph_lru_release_index (gops -> idx ) < 0 )
1394
- goto out ;
1394
+ return ;
1395
1395
1396
1396
fgraph_array [gops -> idx ] = & fgraph_stub ;
1397
1397
@@ -1413,7 +1413,5 @@ void unregister_ftrace_graph(struct fgraph_ops *gops)
1413
1413
unregister_pm_notifier (& ftrace_suspend_notifier );
1414
1414
unregister_trace_sched_switch (ftrace_graph_probe_sched_switch , NULL );
1415
1415
}
1416
- out :
1417
1416
gops -> saved_func = NULL ;
1418
- mutex_unlock (& ftrace_lock );
1419
1417
}
You can’t perform that action at this time.
0 commit comments