Commit 06294cf
committed
ftrace: Use guard for match_records()
The ftrace_lock is held for most of match_records() until the end of the
function. Use guard to make error paths simpler.
Cc: Masami Hiramatsu <[email protected]>
Cc: Mark Rutland <[email protected]>
Cc: Mathieu Desnoyers <[email protected]>
Cc: Andrew Morton <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Link: https://lore.kernel.org/[email protected]
Signed-off-by: Steven Rostedt (Google) <[email protected]>1 parent 6348a3f commit 06294cf
1 file changed
+6
-12
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4829 | 4829 | | |
4830 | 4830 | | |
4831 | 4831 | | |
4832 | | - | |
| 4832 | + | |
4833 | 4833 | | |
4834 | 4834 | | |
4835 | | - | |
| 4835 | + | |
4836 | 4836 | | |
4837 | | - | |
4838 | | - | |
4839 | | - | |
4840 | | - | |
| 4837 | + | |
| 4838 | + | |
4841 | 4839 | | |
4842 | 4840 | | |
4843 | 4841 | | |
| |||
4846 | 4844 | | |
4847 | 4845 | | |
4848 | 4846 | | |
4849 | | - | |
4850 | | - | |
4851 | | - | |
4852 | | - | |
| 4847 | + | |
| 4848 | + | |
4853 | 4849 | | |
4854 | 4850 | | |
4855 | 4851 | | |
4856 | 4852 | | |
4857 | | - | |
4858 | | - | |
4859 | 4853 | | |
4860 | 4854 | | |
4861 | 4855 | | |
| |||
0 commit comments