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
commit f6c594fa29
Notes: sideshowbarker 2024-07-17 22:09:59 +09:00

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);