[PATCH v1 5/5] landlock: Fix formatting
Günther Noack
gnoack3000 at gmail.com
Tue Dec 23 21:29:46 UTC 2025
On Fri, Dec 19, 2025 at 08:38:51PM +0100, Mickaël Salaün wrote:
> Format with clang-format -i security/landlock/*.[ch]
>
> Cc: Christian Brauner <brauner at kernel.org>
> Cc: Günther Noack <gnoack3000 at gmail.com>
> Cc: Mateusz Guzik <mjguzik at gmail.com>
> Fixes: b4dbfd8653b3 ("Coccinelle-based conversion to use ->i_state accessors")
> Signed-off-by: Mickaël Salaün <mic at digikod.net>
> ---
> security/landlock/fs.c | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/security/landlock/fs.c b/security/landlock/fs.c
> index fe794875ad46..e3c3a8a9ac27 100644
> --- a/security/landlock/fs.c
> +++ b/security/landlock/fs.c
> @@ -1314,7 +1314,8 @@ static void hook_sb_delete(struct super_block *const sb)
> * second call to iput() for the same Landlock object. Also
> * checks I_NEW because such inode cannot be tied to an object.
> */
> - if (inode_state_read(inode) & (I_FREEING | I_WILL_FREE | I_NEW)) {
> + if (inode_state_read(inode) &
> + (I_FREEING | I_WILL_FREE | I_NEW)) {
> spin_unlock(&inode->i_lock);
> continue;
> }
> --
> 2.52.0
>
Reviewed-by: Günther Noack <gnoack3000 at gmail.com>
More information about the Linux-security-module-archive
mailing list