ChangeSet 1.2196, 2005/03/24 19:33:28-06:00, [EMAIL PROTECTED](none)

        [CIFS] Check if cifs demultiplex thread valid (not exited, or exiting) 
before we wake it on unmount (otherwise can cause oops in send_sig).
        
        Pointed out by Ameet Paranjape
        
        Signed-off-by: Steve French ([EMAIL PROTECTED])



 connect.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletion(-)


diff -Nru a/fs/cifs/connect.c b/fs/cifs/connect.c
--- a/fs/cifs/connect.c 2005-03-30 12:09:40 -08:00
+++ b/fs/cifs/connect.c 2005-03-30 12:09:40 -08:00
@@ -2932,7 +2932,8 @@
                                return 0;
                        } else if (rc == -ESHUTDOWN) {
                                cFYI(1,("Waking up socket by sending it 
signal"));
-                               send_sig(SIGKILL,cifsd_task,1);
+                               if(cifsd_task)
+                                       send_sig(SIGKILL,cifsd_task,1);
                                rc = 0;
                        } /* else - we have an smb session
                                left on this socket do not kill cifsd */
-
To unsubscribe from this list: send the line "unsubscribe bk-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