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-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=2c731afb0d4ba16018b400c75665fbdb8feb2175;p=linux-beck.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 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) {