Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

btrfs: fix double mntput() in mount_subvol()



Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent 6aaf05f4
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -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);