[SCM] Samba Shared Repository - branch master updated - release-4-0-0alpha8-1165-g2135461

Jeremy Allison jra at samba.org
Mon Aug 24 22:15:38 MDT 2009


The branch, master has been updated
       via  213546103749c30dbb3ad8472872b9a8fad34205 (commit)
      from  c69f92d16d57c2387d31b5dfd01aab0685a671d0 (commit)

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master


- Log -----------------------------------------------------------------
commit 213546103749c30dbb3ad8472872b9a8fad34205
Author: Jeremy Allison <jra at samba.org>
Date:   Mon Aug 24 21:14:52 2009 -0700

    Help debug for bug 6651 - smbd SIGSEGV when breaking oplocks.
    Should help track if we get invoked with an invalid fd from
    the signal handler.
    Jeremy.

-----------------------------------------------------------------------

Summary of changes:
 source3/smbd/oplock_linux.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source3/smbd/oplock_linux.c b/source3/smbd/oplock_linux.c
index b4a5495..535e809 100644
--- a/source3/smbd/oplock_linux.c
+++ b/source3/smbd/oplock_linux.c
@@ -98,6 +98,10 @@ static void linux_oplock_signal_handler(struct tevent_context *ev_ctx,
 	files_struct *fsp;
 
 	fsp = file_find_fd(fd);
+	if (fsp == NULL) {
+		DEBUG(0,("linux_oplock_signal_handler: failed to find fsp for file fd=%d\n", fd ));
+		smb_panic("linux_oplock_signal_handler\n");
+	}
 	break_kernel_oplock(smbd_messaging_context(), fsp);
 }
 


-- 
Samba Shared Repository


More information about the samba-cvs mailing list