[PATCH v1 5/5] landlock: Fix formatting

Mickaël Salaün mic at digikod.net
Fri Dec 19 19:38:51 UTC 2025


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




More information about the Linux-security-module-archive mailing list