author: Miklos Szeredi <mszeredi@redhat.com> 2020-11-11 17:22:31 +0100
committer: Miklos Szeredi <mszeredi@redhat.com> 2020-11-11 17:22:31 +0100
commit: 66ab33bf6d4341574f88b511e856a73f6f2a921e
parent: 3993382bb3198cc5e263c3519418e716bd57b056
Commit Summary:
Diffstat:
1 file changed, 2 insertions, 0 deletions
diff --git a/fs/fuse/virtio_fs.c b/fs/fuse/virtio_fs.c
index 21a9e534417c..d2c0e58c6416 100644
--- a/fs/fuse/virtio_fs.c
+++ b/fs/fuse/virtio_fs.c
@@ -1464,6 +1464,8 @@ static int virtio_fs_get_tree(struct fs_context *fsc)
if (!sb->s_root) {
err = virtio_fs_fill_super(sb, fsc);
if (err) {
+ fuse_mount_put(fm);
+ sb->s_fs_info = NULL;
deactivate_locked_super(sb);
return err;
}