projects
/
platform
/
kernel
/
linux-3.10.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4523cc3
)
[CIFS] Fix oops in reset_cifs_unix_caps on reconnect
author
Steve French
<sfrench@us.ibm.com>
Thu, 3 May 2007 04:30:13 +0000
(
04:30
+0000)
committer
Steve French
<sfrench@us.ibm.com>
Thu, 3 May 2007 04:30:13 +0000
(
04:30
+0000)
Signed-off-by: Steve French <sfrench@us.ibm.com>
fs/cifs/connect.c
patch
|
blob
|
history
diff --git
a/fs/cifs/connect.c
b/fs/cifs/connect.c
index
1f4bc71
..
cf40e24
100644
(file)
--- 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));