aboutsummaryrefslogtreecommitdiff
path: root/fs
diff options
context:
space:
mode:
authorSteve French <sfrench@us.ibm.com>2008-08-15 19:05:06 +0000
committerGreg Kroah-Hartman <gregkh@suse.de>2008-08-20 11:05:04 -0700
commit90cc576c1fbfbee4d4e1ada7d877c46969c7cd3b (patch)
tree8289bddd6bb6859bf74abc71eb4eaa05b48ea587 /fs
parent082e898def44f5faf1f3328f258d443500f7522b (diff)
CIFS: if get root inode fails during mount, cleanup tree connection
commit 2c731afb0d4ba16018b400c75665fbdb8feb2175 upstream Signed-off-by: Steve French <sfrench@us.ibm.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'fs')
-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 86b4d5f405a..6203609d316 100644
--- a/fs/cifs/cifsfs.c
+++ b/fs/cifs/cifsfs.c
@@ -175,6 +175,8 @@ out_no_root:
if (inode)
iput(inode);
+ cifs_umount(sb, cifs_sb);
+
out_mount_failed:
if (cifs_sb) {
#ifdef CONFIG_CIFS_DFS_UPCALL