Skip to content

Commit

Permalink
[CIFS] Fix oops in reset_cifs_unix_caps on reconnect
Browse files Browse the repository at this point in the history
Signed-off-by: Steve French <sfrench@us.ibm.com>
  • Loading branch information
Steve French committed May 3, 2007
1 parent 4523cc3 commit 0b2365f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/cifs/connect.c
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down

0 comments on commit 0b2365f

Please sign in to comment.