aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sys/kern/kern_sig.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/sys/kern/kern_sig.c b/sys/kern/kern_sig.c
index f25ff1ed55a6..6b9ea8d110c3 100644
--- a/sys/kern/kern_sig.c
+++ b/sys/kern/kern_sig.c
@@ -4207,9 +4207,7 @@ filt_sigattach(struct knote *kn)
static void
filt_sigdetach(struct knote *kn)
{
- struct proc *p = kn->kn_ptr.p_proc;
-
- knlist_remove(p->p_klist, kn, 0);
+ knlist_remove(kn->kn_knlist, kn, 0);
}
/*