summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteve French <sfrench@us.ibm.com>2008-08-12 00:28:53 +0200
committerSteve French <sfrench@us.ibm.com>2008-08-12 00:28:53 +0200
commit2c731afb0d4ba16018b400c75665fbdb8feb2175 (patch)
tree5fdea27480673fb7e89d74783fb318ab1c2b35c8
parentMerge branch 'fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/davej/c... (diff)
downloadlinux-2c731afb0d4ba16018b400c75665fbdb8feb2175.tar.xz
linux-2c731afb0d4ba16018b400c75665fbdb8feb2175.zip
[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>
-rw-r--r--fs/cifs/cifsfs.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/cifs/cifsfs.c b/fs/cifs/cifsfs.c
index e8da4ee761b5..f50fc8728c94 100644
--- a/fs/cifs/cifsfs.c
+++ b/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) {