Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0b2365f8 authored by Steve French's avatar Steve French
Browse files

[CIFS] Fix oops in reset_cifs_unix_caps on reconnect



Signed-off-by: default avatarSteve French <sfrench@us.ibm.com>
parent 4523cc30
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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));