diff options
author | Jeremy Allison <jra@samba.org> | 2009-08-24 21:14:52 -0700 |
---|---|---|
committer | Karolin Seeger <kseeger@samba.org> | 2009-09-09 12:45:09 +0200 |
commit | e30b60ede56b2ccf59d820f39d379c52d04c20d2 (patch) | |
tree | b545d923230b5878f43f1696c848b902a51fec64 | |
parent | b1bbb87c3a02fc2ccb0091084dc1898a0d120b8b (diff) | |
download | samba-e30b60ede56b2ccf59d820f39d379c52d04c20d2.tar.gz |
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. (cherry picked from commit 213546103749c30dbb3ad8472872b9a8fad34205)
(cherry picked from commit 6b9d518b9f1244c99fbaa2812886d02635caff14)
-rw-r--r-- | source3/smbd/oplock_linux.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source3/smbd/oplock_linux.c b/source3/smbd/oplock_linux.c index 273fbfdc01e..7f215dfc430 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); } |