Browse Source

[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 years ago
parent
commit
2c731afb0d
1 changed files with 2 additions and 0 deletions
  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"));
 	cERROR(1, ("cifs_read_super: get root inode failed"));
 	if (inode)
 	if (inode)
 		iput(inode);
 		iput(inode);
+	
+	cifs_umount(sb, cifs_sb);
 
 
 out_mount_failed:
 out_mount_failed:
 	if (cifs_sb) {
 	if (cifs_sb) {