summaryrefslogtreecommitdiffstats
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:15:27 -0700
commite15002a6d8c577560d003d50d8e8c1faeafd2e8e (patch)
tree8832aa1971379adde6b1c4a911487a028762d9ea
parent0695f8439d0379017605eb86473deb9ba489832a (diff)
downloadlinux-stable-e15002a6d8c577560d003d50d8e8c1faeafd2e8e.tar.gz
linux-stable-e15002a6d8c577560d003d50d8e8c1faeafd2e8e.tar.bz2
linux-stable-e15002a6d8c577560d003d50d8e8c1faeafd2e8e.zip
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>
-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 b94fb5cd1b0b..77f8770b41ad 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