]> git.ipfire.org Git - thirdparty/linux.git/commit
selinux: don't bother with selinuxfs_info_free() on failures
authorAl Viro <viro@zeniv.linux.org.uk>
Sun, 15 Jun 2025 02:01:54 +0000 (03:01 +0100)
committerPaul Moore <paul@paul-moore.com>
Tue, 24 Jun 2025 23:39:28 +0000 (19:39 -0400)
commitee79ba39b3d6fdcfa53de6519d7e259e284e78f7
treea29a022d705637c2507e15db153fdca0760d589c
parent9ab71d9204c32a9814d38528d066fdf6fa128604
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>
security/selinux/selinuxfs.c