]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
kprobes: Adopt guard() and scoped_guard()
authorMasami Hiramatsu (Google) <mhiramat@kernel.org>
Fri, 29 Nov 2024 16:47:58 +0000 (01:47 +0900)
committerMasami Hiramatsu (Google) <mhiramat@kernel.org>
Fri, 10 Jan 2025 00:00:12 +0000 (09:00 +0900)
commit587e8e6d640bcf89a4bf29745a3c3fdfe8379ae0
tree79a2929d36ec330e4bf838a48ca4fc4bc52c6356
parent1703abb4dead917ec7e6d9ccb4c13632a6f0994d
kprobes: Adopt guard() and scoped_guard()

Use guard() or scoped_guard() for critical sections rather than
discrete lock/unlock pairs.

Link: https://lore.kernel.org/all/173289887835.73724.608223217359025939.stgit@devnote2/
Signed-off-by: Masami Hiramatsu (Google) <mhiramat@kernel.org>
kernel/kprobes.c