mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-10-22 19:14:51 +00:00
pstore: inode: Convert mutex usage to guard(mutex)
[ Upstream commite2eeddefb0] Replace open-coded mutex handling with cleanup.h guard(mutex) and scoped_guard(mutex, ...). Cc: Guilherme G. Piccoli <gpiccoli@igalia.com> Cc: Tony Luck <tony.luck@intel.com> Cc: <linux-hardening@vger.kernel.org> Link: https://lore.kernel.org/r/20231205182622.1329923-2-keescook@chromium.org Signed-off-by: Kees Cook <keescook@chromium.org> Stable-dep-of:a43e0fc5e9("pstore: inode: Only d_invalidate() is needed") Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
e16c33dd99
commit
be52ee92ce
1 changed files with 31 additions and 45 deletions
Loading…
Add table
Add a link
Reference in a new issue