summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_poll.c
diff options
context:
space:
mode:
authorru <ru@FreeBSD.org>2004-04-15 07:38:44 +0000
committerru <ru@FreeBSD.org>2004-04-15 07:38:44 +0000
commit2b44d13e3e15f3a160899926939d06000e035d04 (patch)
tree3414b8730087a3efef81c93bfe9c5f9e7b830eaf /sys/kern/kern_poll.c
parent26c9f4b6365f7a81f59cc31e09a6c8e25fa5193d (diff)
downloadFreeBSD-src-2b44d13e3e15f3a160899926939d06000e035d04.zip
FreeBSD-src-2b44d13e3e15f3a160899926939d06000e035d04.tar.gz
Ensure that the poll_burst <= poll_burst_max constraint really holds.
Reviewed by: luigi
Diffstat (limited to 'sys/kern/kern_poll.c')
-rw-r--r--sys/kern/kern_poll.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/kern/kern_poll.c b/sys/kern/kern_poll.c
index a597548..2905c2a 100644
--- a/sys/kern/kern_poll.c
+++ b/sys/kern/kern_poll.c
@@ -369,6 +369,8 @@ netisr_poll(void)
else if (poll_each_burst > poll_burst_max)
poll_each_burst = poll_burst_max;
+ if (poll_burst > poll_burst_max)
+ poll_burst = poll_burst_max;
residual_burst = poll_burst;
}
cycles = (residual_burst < poll_each_burst) ?
OpenPOWER on IntegriCloud