[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20231205175449.work.110-kees@kernel.org>
Date: Tue, 5 Dec 2023 10:26:13 -0800
From: Kees Cook <keescook@...omium.org>
To: "Guilherme G. Piccoli" <gpiccoli@...lia.com>
Cc: Kees Cook <keescook@...omium.org>, Tony Luck <tony.luck@...el.com>,
linux-kernel@...r.kernel.org, linux-hardening@...r.kernel.org
Subject: [PATCH v2 0/4] pstore: Initial use of cleanup.h
Hi,
Mostly as practice for myself, I rewrote a bunch of the error handling
paths in pstore to use the new cleanup.h routines. I'm enjoying this part:
"44 insertions(+), 65 deletions(-)"
It also passes basic testing. :)
-Kees
v2: do not add a global iput macro
v1: https://lore.kernel.org/lkml/20231202211535.work.571-kees@kernel.org/
Kees Cook (4):
pstore: inode: Convert kfree() usage to __free(kfree)
pstore: inode: Convert mutex usage to guard(mutex)
pstore: inode: Use __free(pstore_iput) for inode allocations
pstore: inode: Use cleanup.h for struct pstore_private
fs/pstore/inode.c | 109 +++++++++++++++++++---------------------------
1 file changed, 44 insertions(+), 65 deletions(-)
--
2.34.1
Powered by blists - more mailing lists