Fix corner case where the size is a power of two.

This commit is contained in:
marcel 2011-05-03 01:43:04 +00:00
parent 58042dc334
commit 2bce8b194c

View File

@ -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;
}