aboutsummaryrefslogtreecommitdiff
path: root/sys/kern/kern_poll.c
diff options
context:
space:
mode:
authorRuslan Ermilov <ru@FreeBSD.org>2004-04-15 07:38:44 +0000
committerRuslan Ermilov <ru@FreeBSD.org>2004-04-15 07:38:44 +0000
commit61f7581d089ef2018e6a030b2d23b3f1f156a6a3 (patch)
tree3414b8730087a3efef81c93bfe9c5f9e7b830eaf /sys/kern/kern_poll.c
parenta8bd95a57101571504a64007c81cd75e121ec6ea (diff)
downloadsrc-61f7581d089ef2018e6a030b2d23b3f1f156a6a3.tar.gz
src-61f7581d089ef2018e6a030b2d23b3f1f156a6a3.zip
Ensure that the poll_burst <= poll_burst_max constraint really holds.
Reviewed by: luigi
Notes
Notes: svn path=/head/; revision=128277
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 a597548d0e09..2905c2ad89b8 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) ?