Hopefully last part of the fix for bug 6651 - smbd SIGSEGV when breaking oplocks...
[metze/samba/wip.git] / 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);
 }