mirror of
https://github.com/opnsense/src.git
synced 2026-06-13 10:40:19 -04:00
- Fix a round down bogon in uma_zone_set_max().
Submitted by: jeff@
This commit is contained in:
parent
44493e088a
commit
d4d6aee5a0
1 changed files with 2 additions and 0 deletions
|
|
@ -1801,6 +1801,8 @@ uma_zone_set_max(uma_zone_t zone, int nitems)
|
|||
zone->uz_maxpages = nitems * zone->uz_ppera;
|
||||
else
|
||||
zone->uz_maxpages = nitems / zone->uz_ipers;
|
||||
if (zone->uz_maxpages * zone->uz_ipers < nitems)
|
||||
zone->uz_maxpages++;
|
||||
ZONE_UNLOCK(zone);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue