Skip to content

Commit

Permalink
btrfs: fix double mntput() in mount_subvol()
Browse files Browse the repository at this point in the history
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
  • Loading branch information
Al Viro committed Nov 16, 2011
1 parent 6aaf05f commit 8d514bb
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion fs/btrfs/super.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 8d514bb

Please sign in to comment.