git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b1bbb87
)
Help debug for bug 6651 - smbd SIGSEGV when breaking oplocks. Should help track if...
author
Jeremy Allison
<jra@samba.org>
Tue, 25 Aug 2009 04:14:52 +0000
(21:14 -0700)
committer
Karolin Seeger
<kseeger@samba.org>
Wed, 9 Sep 2009 10:45:09 +0000
(12:45 +0200)
(cherry picked from commit
6b9d518b9f1244c99fbaa2812886d02635caff14
)
source3/smbd/oplock_linux.c
patch
|
blob
|
history
diff --git
a/source3/smbd/oplock_linux.c
b/source3/smbd/oplock_linux.c
index 273fbfdc01e7ec33ab44cc22b6c1cf997df150c4..7f215dfc430800896c60d16d34e70f58e28556ed 100644
(file)
--- 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);
}