pstore: inode: Convert mutex usage to guard(mutex)
authorKees Cook <keescook@chromium.org>
Tue, 5 Dec 2023 18:26:15 +0000 (10:26 -0800)
committerKees Cook <keescook@chromium.org>
Fri, 8 Dec 2023 22:15:44 +0000 (14:15 -0800)
commite2eeddefb046dbc771a6fa426f7f98fb25adfe68
tree6d13eab45485bac3b613d323cdf15a5c75a3d726
parent6ba6ee8a59a8ac673d9a9415bdf1d0a27990dc45
pstore: inode: Convert mutex usage to guard(mutex)

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>
fs/pstore/inode.c