Kernel: kmalloc minimum align is forced to s_kmalloc_min_align

This commit is contained in:
Bananymous 2023-03-09 14:37:25 +02:00
parent 8940ff8002
commit 8dbece9119
1 changed files with 2 additions and 0 deletions

View File

@ -304,6 +304,8 @@ void* kmalloc(size_t size, size_t align)
return nullptr;
ASSERT(is_power_of_two(align));
if (align < s_kmalloc_min_align)
align = s_kmalloc_min_align;
Kernel::CriticalScope critical;