Fix corner case where the size is a power of two.
This commit is contained in:
parent
58042dc334
commit
2bce8b194c
@ -76,7 +76,7 @@ sz2shft(vm_offset_t ofs, vm_size_t sz)
|
||||
|
||||
shft = 12; /* Start with 4K */
|
||||
s = 1 << shft;
|
||||
while (s < sz) {
|
||||
while (s <= sz) {
|
||||
shft++;
|
||||
s <<= 1;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user