From: Steve French Date: Thu, 3 May 2007 04:30:13 +0000 (+0000) Subject: [CIFS] Fix oops in reset_cifs_unix_caps on reconnect X-Git-Tag: v2.6.22-rc1~1010^2~3 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=0b2365f826f40d6e966365299d4e9dcc7ef4e93f;p=linux-2.6-omap-h63xx.git [CIFS] Fix oops in reset_cifs_unix_caps on reconnect Signed-off-by: Steve French --- diff --git a/fs/cifs/connect.c b/fs/cifs/connect.c index 1f4bc718170..cf40e245fcf 100644 --- a/fs/cifs/connect.c +++ b/fs/cifs/connect.c @@ -1670,7 +1670,7 @@ void reset_cifs_unix_caps(int xid, struct cifsTconInfo * tcon, /* We might be setting the path sep back to a different form if we are reconnecting and the server switched its posix path capability for this share */ - if(CIFS_SB(sb)->prepathlen > 0) + if(sb && (CIFS_SB(sb)->prepathlen > 0)) CIFS_SB(sb)->prepath[0] = CIFS_DIR_SEP(CIFS_SB(sb)); cFYI(1,("Negotiate caps 0x%x",(int)cap));