Commit be52ee92 authored by Kees Cook's avatar Kees Cook Committed by Sasha Levin
Browse files

pstore: inode: Convert mutex usage to guard(mutex)

[ Upstream commit e2eeddef ]

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: default avatarKees Cook <keescook@chromium.org>
Stable-dep-of: a43e0fc5 ("pstore: inode: Only d_invalidate() is needed")
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent e16c33dd
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment