[CIFS] if get root inode fails during mount, cleanup tree connection

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <git-commits-head@...>
Date: Friday, August 15, 2008 - 3:00 pm

Gitweb:     http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=2c731a...
Commit:     2c731afb0d4ba16018b400c75665fbdb8feb2175
Parent:     796aadeb1b2db9b5d463946766c5bbfd7717158c
Author:     Steve French <sfrench@us.ibm.com>
AuthorDate: Mon Aug 11 22:28:53 2008 +0000
Committer:  Steve French <sfrench@us.ibm.com>
CommitDate: Mon Aug 11 22:28:53 2008 +0000

    [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>
---
 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 e8da4ee..f50fc87 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) {
--
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[CIFS] if get root inode fails during mount, cleanup tree co..., Linux Kernel Mailing List..., (Fri Aug 15, 3:00 pm)