diff options
author | 2024-12-25 17:25:42 -0500 | |
---|---|---|
committer | 2024-12-26 10:38:37 -0500 | |
commit | 6c05353e4ff5875807f1a00f8d95e68b3d1e4d7f (patch) | |
tree | 67f3f6f1bf47b8b0e9ae6b1a4b5e1f5b4595ffea /scripts/lib/kdoc/kdoc_output.py | |
parent | tracing: Switch trace_osnoise.c code over to use guard() and __free() (diff) | |
download | wireguard-linux-6c05353e4ff5875807f1a00f8d95e68b3d1e4d7f.tar.xz wireguard-linux-6c05353e4ff5875807f1a00f8d95e68b3d1e4d7f.zip |
tracing: Switch trace_stack.c code over to use guard()
The function stack_trace_sysctl() uses a goto on the error path to jump to
the mutex_unlock() code. Replace the logic to use guard() and let the
compiler worry about it.
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: Peter Zijlstra <peterz@infradead.org>
Link: https://lore.kernel.org/20241225222931.684913592@goodmis.org
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
Diffstat (limited to 'scripts/lib/kdoc/kdoc_output.py')
0 files changed, 0 insertions, 0 deletions