diff options
author | ru <ru@FreeBSD.org> | 2004-04-15 07:38:44 +0000 |
---|---|---|
committer | ru <ru@FreeBSD.org> | 2004-04-15 07:38:44 +0000 |
commit | 2b44d13e3e15f3a160899926939d06000e035d04 (patch) | |
tree | 3414b8730087a3efef81c93bfe9c5f9e7b830eaf | |
parent | 26c9f4b6365f7a81f59cc31e09a6c8e25fa5193d (diff) | |
download | FreeBSD-src-2b44d13e3e15f3a160899926939d06000e035d04.zip FreeBSD-src-2b44d13e3e15f3a160899926939d06000e035d04.tar.gz |
Ensure that the poll_burst <= poll_burst_max constraint really holds.
Reviewed by: luigi
-rw-r--r-- | sys/kern/kern_poll.c | 2 |
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) ? |