Skip to content
Commit 66ab33bf authored by Miklos Szeredi's avatar Miklos Szeredi
Browse files

virtiofs fix leak in setup



This can be triggered for example by adding the "-omand" mount option,
which will be rejected and virtio_fs_fill_super() will return an error.

In such a case the allocations for fuse_conn and fuse_mount will leak due
to s_root not yet being set and so ->put_super() not being called.

Fixes: a62a8ef9 ("virtio-fs: add virtiofs filesystem")
Signed-off-by: default avatarMiklos Szeredi <mszeredi@redhat.com>
parent 3993382b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment