diff options
| author | Al Viro <[email protected]> | 2025-06-15 02:01:54 +0000 |
|---|---|---|
| committer | Paul Moore <[email protected]> | 2025-06-24 23:39:28 +0000 |
| commit | ee79ba39b3d6fdcfa53de6519d7e259e284e78f7 (patch) | |
| tree | a29a022d705637c2507e15db153fdca0760d589c /security/selinux/selinuxfs.c | |
| parent | selinux: add __GFP_NOWARN to hashtab_init() allocations (diff) | |
| download | kernel-ee79ba39b3d6fdcfa53de6519d7e259e284e78f7.tar.gz kernel-ee79ba39b3d6fdcfa53de6519d7e259e284e78f7.zip | |
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 <[email protected]>
Reviewed-by: Christian Brauner <[email protected]>
[PM: subj and description tweaks]
Signed-off-by: Paul Moore <[email protected]>
Diffstat (limited to 'security/selinux/selinuxfs.c')
| -rw-r--r-- | security/selinux/selinuxfs.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/security/selinux/selinuxfs.c b/security/selinux/selinuxfs.c index 95765374f58d..9aa1d03ab612 100644 --- a/security/selinux/selinuxfs.c +++ b/security/selinux/selinuxfs.c @@ -2098,8 +2098,6 @@ err: pr_err("SELinux: %s: failed while creating inodes\n", __func__); - selinux_fs_info_free(sb); - return ret; } |
