diff options
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 (patch) | |
tree | 4c50f69e6d2e0bdf1bae4de17d97a932dbfc439c /lib/test_module.c | |
parent | 3993382bb3198cc5e263c3519418e716bd57b056 (diff) | |
download | linux-66ab33bf6d4341574f88b511e856a73f6f2a921e.tar.bz2 |
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: a62a8ef9d97d ("virtio-fs: add virtiofs filesystem")
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
Diffstat (limited to 'lib/test_module.c')
0 files changed, 0 insertions, 0 deletions