mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-02 19:15:03 -04:00
btrfs: fix double mntput() in mount_subvol()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
@@ -861,7 +861,6 @@ static struct dentry *mount_subvol(const char *subvol_name, int flags,
|
||||
|
||||
if (!is_subvolume_inode(path.dentry->d_inode)) {
|
||||
path_put(&path);
|
||||
mntput(mnt);
|
||||
error = -EINVAL;
|
||||
printk(KERN_ERR "btrfs: '%s' is not a valid subvolume\n",
|
||||
subvol_name);
|
||||
|
||||
Reference in New Issue
Block a user