Repository navigation
Commit 2c20c7d
virtiofs: fix userns
[ Upstream commit 0a7419c ]
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>1 parent 87fe0ca commit 2c20c7d
1 file changed
Lines changed: 1 addition & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1457 | 1457 | | |
1458 | 1458 | | |
1459 | 1459 | | |
1460 | | - | |
1461 | | - | |
| 1460 | + | |
1462 | 1461 | | |
1463 | 1462 | | |
1464 | 1463 | | |
| |||
0 commit comments