Fix another use of PAGE_SIZE

Not detected when building locally, probably I should have done a clean
build.
This commit is contained in:
Adrien Destugues 2017-04-14 07:18:38 +02:00
parent 743088d40b
commit 6caa391f67

View File

@ -609,7 +609,7 @@ _kernel_malloc(size_t size, int flags)
// size. While it also states that this shouldn't be relied upon, at least
// bus_dmamem_alloc expects it and drivers may depend on it as well.
void *ptr
= memalign(size >= PAGE_SIZE ? PAGE_SIZE : next_power_of_2(size), size);
= memalign(size >= PAGESIZE ? PAGESIZE : next_power_of_2(size), size);
if (ptr == NULL)
return NULL;