Commit 1432afb
committed
ftrace: Use guard to lock ftrace_lock in cache_mod()
The ftrace_lock is held throughout cache_mod(), use guard to simplify the
error paths.
Cc: Masami Hiramatsu <mhiramat@kernel.org>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: https://lore.kernel.org/20241028071308.088458856@goodmis.org
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>1 parent 06294cf commit 1432afb
1 file changed
Lines changed: 6 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4947 | 4947 | | |
4948 | 4948 | | |
4949 | 4949 | | |
4950 | | - | |
4951 | 4950 | | |
4952 | | - | |
| 4951 | + | |
4953 | 4952 | | |
4954 | 4953 | | |
4955 | 4954 | | |
| 4955 | + | |
| 4956 | + | |
4956 | 4957 | | |
4957 | | - | |
4958 | 4958 | | |
4959 | 4959 | | |
4960 | 4960 | | |
| |||
4970 | 4970 | | |
4971 | 4971 | | |
4972 | 4972 | | |
4973 | | - | |
| 4973 | + | |
4974 | 4974 | | |
4975 | 4975 | | |
4976 | | - | |
4977 | 4976 | | |
4978 | 4977 | | |
4979 | | - | |
| 4978 | + | |
4980 | 4979 | | |
4981 | 4980 | | |
4982 | | - | |
4983 | | - | |
4984 | | - | |
4985 | | - | |
4986 | | - | |
| 4981 | + | |
4987 | 4982 | | |
4988 | 4983 | | |
4989 | 4984 | | |
| |||
0 commit comments