Skip to content

Commit

Permalink
[CIFS] if get root inode fails during mount, cleanup tree connection
Browse files Browse the repository at this point in the history
CC: Stable Kernel <stable@kernel.org>
Signed-off-by: Steve French <sfrench@us.ibm.com>
  • Loading branch information
Steve French committed Aug 11, 2008
1 parent 796aade commit 2c731af
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions fs/cifs/cifsfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 2c731af

Please sign in to comment.