[CIFS] if get root inode fails during mount, cleanup tree connection
Steve French [Mon, 11 Aug 2008 22:28:53 +0000 (22:28 +0000)]
CC: Stable Kernel <stable@kernel.org>
Signed-off-by: Steve French <sfrench@us.ibm.com>

fs/cifs/cifsfs.c

index e8da4ee..f50fc87 100644 (file)
@@ -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) {