summaryrefslogtreecommitdiff
path: root/fs/cifs
diff options
context:
space:
mode:
authorSteve French <sfrench@us.ibm.com>2007-05-03 08:30:13 +0400
committerSteve French <sfrench@us.ibm.com>2007-05-03 08:30:13 +0400
commit0b2365f826f40d6e966365299d4e9dcc7ef4e93f (patch)
tree4683ead686f690561ae6122b38ae059ad62f4b09 /fs/cifs
parent4523cc3044d1bc7fcf3d7fee75d62bc76b8e1abb (diff)
downloadlinux-0b2365f826f40d6e966365299d4e9dcc7ef4e93f.tar.xz
[CIFS] Fix oops in reset_cifs_unix_caps on reconnect
Signed-off-by: Steve French <sfrench@us.ibm.com>
Diffstat (limited to 'fs/cifs')
-rw-r--r--fs/cifs/connect.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/cifs/connect.c b/fs/cifs/connect.c
index 1f4bc7181701..cf40e245fcf4 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));