Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

landlock: Fix formatting

Format with clang-format -i security/landlock/*.[ch]

Cc: Christian Brauner <brauner@kernel.org>
Cc: Günther Noack <gnoack3000@gmail.com>
Cc: Mateusz Guzik <mjguzik@gmail.com>
Fixes: b4dbfd8653b3 ("Coccinelle-based conversion to use ->i_state accessors")
Link: https://lore.kernel.org/r/20251219193855.825889-5-mic@digikod.net
Reviewed-by: Günther Noack <gnoack3000@gmail.com>
Signed-off-by: Mickaël Salaün <mic@digikod.net>

+2 -1
+2 -1
security/landlock/fs.c
··· 1314 1314 * second call to iput() for the same Landlock object. Also 1315 1315 * checks I_NEW because such inode cannot be tied to an object. 1316 1316 */ 1317 - if (inode_state_read(inode) & (I_FREEING | I_WILL_FREE | I_NEW)) { 1317 + if (inode_state_read(inode) & 1318 + (I_FREEING | I_WILL_FREE | I_NEW)) { 1318 1319 spin_unlock(&inode->i_lock); 1319 1320 continue; 1320 1321 }