aboutsummaryrefslogtreecommitdiff
path: root/scripts/generate_rust_analyzer.py
diff options
context:
space:
mode:
authorLi Huafei <[email protected]>2024-10-24 23:59:17 +0800
committerSteven Rostedt (Google) <[email protected]>2024-10-24 22:26:06 -0400
commitbd3734db86e01e20dd239a40b419059a0ce9c901 (patch)
treeb24f7bb0925bc56f8c0b40b005ee3f8d5aa276f0 /scripts/generate_rust_analyzer.py
parentfae4078c289a2f24229c0de652249948b1cd6bdb (diff)
fgraph: Fix missing unlock in register_ftrace_graph()
Use guard(mutex)() to acquire and automatically release ftrace_lock, fixing the issue of not unlocking when calling cpuhp_setup_state() fails. Fixes smatch warning: kernel/trace/fgraph.c:1317 register_ftrace_graph() warn: inconsistent returns '&ftrace_lock'. Link: https://lore.kernel.org/[email protected] Fixes: 2c02f7375e65 ("fgraph: Use CPU hotplug mechanism to initialize idle shadow stacks") Reported-by: kernel test robot <[email protected]> Reported-by: Dan Carpenter <[email protected]> Closes: https://lore.kernel.org/r/[email protected]/ Suggested-by: Steven Rostedt <[email protected]> Signed-off-by: Li Huafei <[email protected]> Acked-by: Masami Hiramatsu (Google) <[email protected]> Signed-off-by: Steven Rostedt (Google) <[email protected]>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions