Hopefully last part of the fix for bug 6651 - smbd SIGSEGV when breaking oplocks.
[ira/wip.git] / source3 / smbd / oplock_linux.c
index 535e80961630f3c084a95d6c592eb4c84f1a2dd1..c60c74517717da2eea9ae4d7bf007a99734094fa 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);
 }