Skip to content

Commit ee79ba3

Browse files
Al Viropcmoore
authored andcommitted
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>
1 parent 9ab71d9 commit ee79ba3

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

security/selinux/selinuxfs.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2098,8 +2098,6 @@ static int sel_fill_super(struct super_block *sb, struct fs_context *fc)
20982098
pr_err("SELinux: %s: failed while creating inodes\n",
20992099
__func__);
21002100

2101-
selinux_fs_info_free(sb);
2102-
21032101
return ret;
21042102
}
21052103

0 commit comments

Comments
 (0)