Skip to content
Commit 0a7419c6 authored by Miklos Szeredi's avatar Miklos Szeredi
Browse files

virtiofs: fix userns



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: default avatarMiklos Szeredi <mszeredi@redhat.com>
parent 07595bfa
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment