selinux: don't bother with selinuxfs_info_free() on failures

Failures in sel_fill_super() will be followed by sel_kill_sb(), which
will call selinuxfs_info_free() anyway.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Reviewed-by: Christian Brauner <brauner@kernel.org>
[PM: subj and description tweaks]
Signed-off-by: Paul Moore <paul@paul-moore.com>
This commit is contained in:
Al Viro 2025-06-15 03:01:54 +01:00 committed by Paul Moore
parent 9ab71d9204
commit ee79ba39b3
1 changed files with 0 additions and 2 deletions

View File

@ -2098,8 +2098,6 @@ static int sel_fill_super(struct super_block *sb, struct fs_context *fc)
pr_err("SELinux: %s: failed while creating inodes\n", pr_err("SELinux: %s: failed while creating inodes\n",
__func__); __func__);
selinux_fs_info_free(sb);
return ret; return ret;
} }