[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>
This commit is contained in:
Steve French 2008-08-11 22:28:53 +00:00
parent 796aadeb1b
commit 2c731afb0d

View File

@ -174,6 +174,8 @@ cifs_read_super(struct super_block *sb, void *data,
cERROR(1, ("cifs_read_super: get root inode failed"));
if (inode)
iput(inode);
cifs_umount(sb, cifs_sb);
out_mount_failed:
if (cifs_sb) {