]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[CIFS] if get root inode fails during mount, cleanup tree connection
authorSteve French <sfrench@us.ibm.com>
Mon, 11 Aug 2008 22:28:53 +0000 (22:28 +0000)
committerSteve French <sfrench@us.ibm.com>
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 e8da4ee761b512af8744c69f3b3361eb9edffef8..f50fc8728c94b68cd9f87b894bdf59ab795f6f53 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) {