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>
pull/1309/head
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 @@ err:
pr_err("SELinux: %s: failed while creating inodes\n",
__func__);
selinux_fs_info_free(sb);
return ret;
}