From: Steve French Date: Mon, 11 Aug 2008 22:28:53 +0000 (+0000) Subject: [CIFS] if get root inode fails during mount, cleanup tree connection X-Git-Tag: v2.6.27-rc4~63^2~2 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=2c731afb0d4ba16018b400c75665fbdb8feb2175;p=linux-2.6-omap-h63xx.git [CIFS] if get root inode fails during mount, cleanup tree connection CC: Stable Kernel Signed-off-by: Steve French --- diff --git a/fs/cifs/cifsfs.c b/fs/cifs/cifsfs.c index e8da4ee761b..f50fc8728c9 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) {