mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-12-27 11:06:41 -05:00
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:
@@ -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",
|
||||
__func__);
|
||||
|
||||
selinux_fs_info_free(sb);
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user