btrfs: fix double mntput() in mount_subvol()
authorAl Viro <viro@zeniv.linux.org.uk>
Wed, 16 Nov 2011 21:06:09 +0000 (16:06 -0500)
committerAl Viro <viro@zeniv.linux.org.uk>
Wed, 16 Nov 2011 21:06:09 +0000 (16:06 -0500)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/btrfs/super.c

index 8bd9d6d0e07ae97cc2060cb0695468635b422a7e..969a7747e88981ece48796452e3cfe46b607f0bd 100644 (file)
@@ -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);