mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
[CIFS] Fix oops in reset_cifs_unix_caps on reconnect
Signed-off-by: Steve French <[email protected]>
This commit is contained in:
parent
4523cc3044
commit
0b2365f826
1 changed files with 1 additions and 1 deletions
|
|
@ -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));
|
||||
|
|
|
|||
Loading…
Reference in a new issue