pstore: inode: Convert kfree() usage to __free(kfree)
authorKees Cook <keescook@chromium.org>
Tue, 5 Dec 2023 18:26:14 +0000 (10:26 -0800)
committerKees Cook <keescook@chromium.org>
Fri, 8 Dec 2023 22:15:44 +0000 (14:15 -0800)
commit6ba6ee8a59a8ac673d9a9415bdf1d0a27990dc45
tree4b816d7202e3d26d49fbcb387b8baeecac064958
parent86222a8fc16ec517de8da2604d904c9df3a08e5d
pstore: inode: Convert kfree() usage to __free(kfree)

Mostly as an example to myself, replace a simple allocation pattern with
the automatic kfree cleanup features now exposed by cleanup.h.

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-1-keescook@chromium.org
Signed-off-by: Kees Cook <keescook@chromium.org>
fs/pstore/inode.c