]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - fs/cifs/cifsfs.c
[CIFS] if get root inode fails during mount, cleanup tree connection
[karo-tx-linux.git] / 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) {