]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
pstore: inode: Convert mutex usage to guard(mutex)
authorKees Cook <keescook@chromium.org>
Tue, 5 Dec 2023 18:26:15 +0000 (10:26 -0800)
committerSasha Levin <sashal@kernel.org>
Tue, 26 Mar 2024 22:19:34 +0000 (18:19 -0400)
commit952d8a8093519acd181b69ea5783b9dd86d1879b
tree72362a92fc1cb558204463ac84f2b78971701201
parentbe50365391a760853e1eb08ecaa4c3aad099788f
pstore: inode: Convert mutex usage to guard(mutex)

[ Upstream commit e2eeddefb046dbc771a6fa426f7f98fb25adfe68 ]

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: a43e0fc5e913 ("pstore: inode: Only d_invalidate() is needed")
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/pstore/inode.c