commit | 2c20c7d96e45fd9642fe6d12486cda9ef80661df | [log] [tgz] |
---|---|---|
author | Miklos Szeredi <mszeredi@redhat.com> | Wed Apr 14 10:40:58 2021 +0200 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Wed May 19 10:12:56 2021 +0200 |
tree | 87afeee175b0da2493c299c861e6d0371db9a77d | |
parent | 87fe0ca09b2632656a6b193a16e6b458695b5c67 [diff] |
virtiofs: fix userns [ Upstream commit 0a7419c68a45d2d066b996be5087aa2d07ce80eb ] get_user_ns() is done twice (once in virtio_fs_get_tree() and once in fuse_conn_init()), resulting in a reference leak. Also looks better to use fsc->user_ns (which *should* be the current_user_ns() at this point). Signed-off-by: Miklos Szeredi <mszeredi@redhat.com> Signed-off-by: Sasha Levin <sashal@kernel.org>