浏览代码

[CIFS] if get root inode fails during mount, cleanup tree connection

CC: Stable Kernel <stable@kernel.org>
Signed-off-by: Steve French <sfrench@us.ibm.com>
Steve French 16 年之前
父节点
当前提交
2c731afb0d
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      fs/cifs/cifsfs.c

+ 2 - 0
fs/cifs/cifsfs.c

@@ -174,6 +174,8 @@ out_no_root:
 	cERROR(1, ("cifs_read_super: get root inode failed"));
 	if (inode)
 		iput(inode);
+	
+	cifs_umount(sb, cifs_sb);
 
 out_mount_failed:
 	if (cifs_sb) {