[PATCH] selinuxfs_fill_super(): don't bother with selinuxfs_info_free() on failures

Paul Moore paul at paul-moore.com
Tue Jun 24 23:44:23 UTC 2025


On Sat, Jun 14, 2025 at 10:02 PM Al Viro <viro at zeniv.linux.org.uk> wrote:
>
> [don't really care which tree that goes through; right now it's
> in viro/vfs.git #work.misc, but if somebody prefers to grab it
> through a different tree, just say so]
>
> Failures in there will be followed by sel_kill_sb(), which will call
> selinuxfs_info_free() anyway.
>
> Signed-off-by: Al Viro <viro at zeniv.linux.org.uk>
> ---
>  security/selinux/selinuxfs.c | 2 --
>  1 file changed, 2 deletions(-)

Thanks Al.  I went ahead and merged this into the selinux/dev branch
to help avoid any merge issues, but if you've changed your mind and
feel strongly about taking it via your tree let me know.

-- 
paul-moore.com



More information about the Linux-security-module-archive mailing list