Message ID | 20180708210154.10423-5-ebiggers3@gmail.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
diff --git a/fs/libfs.c b/fs/libfs.c index 823f0510e43da..d9a5d883dc3f5 100644 --- a/fs/libfs.c +++ b/fs/libfs.c @@ -588,8 +588,10 @@ int simple_pin_fs(struct file_system_type *type, struct vfsmount **mount, int *c return PTR_ERR(fc); ret = vfs_get_tree(fc); - if (ret < 0) + if (ret < 0) { + put_fs_context(fc); return ret; + } mnt = vfs_create_mount(fc, 0); put_fs_context(fc);