[PATCH] selinuxfs_fill_super(): don't bother with selinuxfs_info_free() on failures
Al Viro
viro at zeniv.linux.org.uk
Sun Jun 15 02:01:54 UTC 2025
[don't really care which tree that goes through; right now it's
in viro/vfs.git #work.misc, but if somebody prefers to grab it
through a different tree, just say so]
Failures in there will be followed by sel_kill_sb(), which will call
selinuxfs_info_free() anyway.
Signed-off-by: Al Viro <viro at zeniv.linux.org.uk>
---
security/selinux/selinuxfs.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/security/selinux/selinuxfs.c b/security/selinux/selinuxfs.c
index e67a8ce4b64c..b44b5919f4af 100644
--- a/security/selinux/selinuxfs.c
+++ b/security/selinux/selinuxfs.c
@@ -2097,8 +2097,6 @@ static int sel_fill_super(struct super_block *sb, struct fs_context *fc)
pr_err("SELinux: %s: failed while creating inodes\n",
__func__);
- selinux_fs_info_free(sb);
-
return ret;
}
--
2.39.5
More information about the Linux-security-module-archive
mailing list