aboutsummaryrefslogtreecommitdiff
path: root/website/static/security/patches/EN-24:03/kqueue.patch
blob: 53bf0db7fe30c647f2ed3dd79922bf87511cf0f1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
--- sys/kern/kern_sig.c.orig
+++ sys/kern/kern_sig.c
@@ -4291,9 +4291,7 @@
 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);
 }
 
 /*