aboutsummaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2011-11-16 16:06:09 -0500
committerAl Viro <viro@zeniv.linux.org.uk>2011-11-16 16:06:09 -0500
commit8d514bbf37eecf0a3e309284728637816a36764b (patch)
tree1a7745397b545456a34d9f2fd37464b44b01aeff /fs
parent6aaf05f472c97ebceff47d9eef464574f1a55727 (diff)
btrfs: fix double mntput() in mount_subvol()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs')
-rw-r--r--fs/btrfs/super.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/fs/btrfs/super.c b/fs/btrfs/super.c
index 8bd9d6d0e07a..969a7747e889 100644
--- a/fs/btrfs/super.c
+++ b/fs/btrfs/super.c
@@ -861,7 +861,6 @@ static struct dentry *mount_subvol(const char *subvol_name, int flags,
861 861
862 if (!is_subvolume_inode(path.dentry->d_inode)) { 862 if (!is_subvolume_inode(path.dentry->d_inode)) {
863 path_put(&path); 863 path_put(&path);
864 mntput(mnt);
865 error = -EINVAL; 864 error = -EINVAL;
866 printk(KERN_ERR "btrfs: '%s' is not a valid subvolume\n", 865 printk(KERN_ERR "btrfs: '%s' is not a valid subvolume\n",
867 subvol_name); 866 subvol_name);