1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 11:18:11 +00:00

Kernel: Remove arbitrary alignment requirement from kmalloc_aligned()

We were not allowing alignments greater than PAGE_SIZE for some reason.
This commit is contained in:
Andreas Kling 2021-12-26 18:37:46 +01:00
parent 9182653a0f
commit f6c594fa29

View file

@ -303,7 +303,6 @@ size_t kmalloc_good_size(size_t size)
void* kmalloc_aligned(size_t size, size_t alignment)
{
VERIFY(alignment <= 4096);
Checked<size_t> real_allocation_size = size;
real_allocation_size += alignment;
real_allocation_size += sizeof(ptrdiff_t) + sizeof(size_t);