diff options
author | Steve French <sfrench@us.ibm.com> | 2008-08-11 18:28:53 -0400 |
---|---|---|
committer | Steve French <sfrench@us.ibm.com> | 2008-08-11 18:28:53 -0400 |
commit | 2c731afb0d4ba16018b400c75665fbdb8feb2175 (patch) | |
tree | 5fdea27480673fb7e89d74783fb318ab1c2b35c8 /fs | |
parent | 796aadeb1b2db9b5d463946766c5bbfd7717158c (diff) |
[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>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/cifs/cifsfs.c | 2 |
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: | |||
174 | cERROR(1, ("cifs_read_super: get root inode failed")); | 174 | cERROR(1, ("cifs_read_super: get root inode failed")); |
175 | if (inode) | 175 | if (inode) |
176 | iput(inode); | 176 | iput(inode); |
177 | |||
178 | cifs_umount(sb, cifs_sb); | ||
177 | 179 | ||
178 | out_mount_failed: | 180 | out_mount_failed: |
179 | if (cifs_sb) { | 181 | if (cifs_sb) { |