Commit 8d514bbf authored by Al Viro's avatar Al Viro

btrfs: fix double mntput() in mount_subvol()

Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent 6aaf05f4
......@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment