Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=0b2365f826f40d6e966365299d4e9dcc7ef4e93f
Commit:     0b2365f826f40d6e966365299d4e9dcc7ef4e93f
Parent:     4523cc3044d1bc7fcf3d7fee75d62bc76b8e1abb
Author:     Steve French <[EMAIL PROTECTED]>
AuthorDate: Thu May 3 04:30:13 2007 +0000
Committer:  Steve French <[EMAIL PROTECTED]>
CommitDate: Thu May 3 04:30:13 2007 +0000

    [CIFS] Fix oops in reset_cifs_unix_caps on reconnect
    
    Signed-off-by: Steve French <[EMAIL PROTECTED]>
---
 fs/cifs/connect.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/fs/cifs/connect.c b/fs/cifs/connect.c
index 1f4bc71..cf40e24 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));
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to