diff mbox

[linux-cifs-client] kernel crash - CIFS client unstable on faulty network conditions

Message ID 4B175252.6070607@suse.de (mailing list archive)
State New, archived
Headers show

Commit Message

Suresh Jayaraman Dec. 3, 2009, 5:53 a.m. UTC
None
diff mbox

Patch

diff --git a/fs/cifs/connect.c b/fs/cifs/connect.c
index 63ea83f..04047e7 100644
--- a/fs/cifs/connect.c
+++ b/fs/cifs/connect.c
@@ -1672,7 +1672,8 @@  cifs_put_tcon(struct cifsTconInfo *tcon)
 	_FreeXid(xid);
 
 	tconInfoFree(tcon);
-	cifs_put_smb_ses(ses);
+	if (ses)
+		cifs_put_smb_ses(ses);
 }
 
 int