aboutsummaryrefslogtreecommitdiff
path: root/website/static/security/patches/EN-22:16/kqueue.patch
diff options
context:
space:
mode:
Diffstat (limited to 'website/static/security/patches/EN-22:16/kqueue.patch')
-rw-r--r--website/static/security/patches/EN-22:16/kqueue.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/website/static/security/patches/EN-22:16/kqueue.patch b/website/static/security/patches/EN-22:16/kqueue.patch
new file mode 100644
index 0000000000..f0533cf7f6
--- /dev/null
+++ b/website/static/security/patches/EN-22:16/kqueue.patch
@@ -0,0 +1,11 @@
+--- sys/kern/kern_event.c.orig
++++ sys/kern/kern_event.c
+@@ -739,7 +739,7 @@
+ if (delta == 0)
+ delta = 1;
+ kn->kn_data += delta;
+- kc->next += (delta + 1) * kc->to;
++ kc->next += delta * kc->to;
+ if (now >= kc->next) /* overflow */
+ kc->next = now + kc->to;
+ KNOTE_ACTIVATE(kn, 0); /* XXX - handle locking */