From d7311b05a8a52b8a16bec6826e21c79631bf6c12 Mon Sep 17 00:00:00 2001 From: Steve French Date: Thu, 3 May 2007 04:30:13 +0000 Subject: [PATCH] --- yaml --- r: 53964 b: refs/heads/master c: 0b2365f826f40d6e966365299d4e9dcc7ef4e93f h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/fs/cifs/connect.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/[refs] b/[refs] index e3abe7f3f19e..4cecff68ddea 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 4523cc3044d1bc7fcf3d7fee75d62bc76b8e1abb +refs/heads/master: 0b2365f826f40d6e966365299d4e9dcc7ef4e93f diff --git a/trunk/fs/cifs/connect.c b/trunk/fs/cifs/connect.c index 1f4bc7181701..cf40e245fcf4 100644 --- a/trunk/fs/cifs/connect.c +++ b/trunk/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));