瀏覽代碼

btrfs: fix double mntput() in mount_subvol()

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Al Viro 14 年之前
父節點
當前提交
8d514bbf37
共有 1 個文件被更改,包括 0 次插入1 次删除
  1. 0 1
      fs/btrfs/super.c

+ 0 - 1
fs/btrfs/super.c

@@ -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);