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 c847783cd3da..d35c35a534f9 100644
--- a/sys/kern/kern_sig.c
+++ b/sys/kern/kern_sig.c
@@ -4298,9 +4298,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);
}
/*