Hopefully last part of the fix for bug 6651 - smbd SIGSEGV when breaking oplocks...
authorJeremy Allison <jra@samba.org>
Thu, 3 Sep 2009 14:40:48 +0000 (07:40 -0700)
committerKarolin Seeger <kseeger@samba.org>
Wed, 9 Sep 2009 10:27:18 +0000 (12:27 +0200)
source3/smbd/oplock_linux.c

index 7f215dfc430800896c60d16d34e70f58e28556ed..2bc0a55518ce7b2dee54707e4a896a87c91b834f 100644 (file)
@@ -99,8 +99,8 @@ static void linux_oplock_signal_handler(struct tevent_context *ev_ctx,
 
        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");
+               DEBUG(0,("linux_oplock_signal_handler: failed to find fsp for file fd=%d (file was closed ?)\n", fd ));
+               return;
        }
        break_kernel_oplock(smbd_messaging_context(), fsp);
 }