diff options
Diffstat (limited to 'src/lib/bootmem.c')
-rw-r--r-- | src/lib/bootmem.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/bootmem.c b/src/lib/bootmem.c index 078f960932..ea971b6851 100644 --- a/src/lib/bootmem.c +++ b/src/lib/bootmem.c @@ -228,7 +228,7 @@ void *bootmem_allocate_buffer(size_t size) } /* 4KiB alignment. */ - size = ALIGN(size, 4096); + size = ALIGN_UP(size, 4096); region = NULL; memranges_each_entry(r, &bootmem) { if (range_entry_base(r) >= max_addr) |