From f6c594fa2941236044d86437441fc49340738a44 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Sun, 26 Dec 2021 18:37:46 +0100 Subject: Kernel: Remove arbitrary alignment requirement from kmalloc_aligned() We were not allowing alignments greater than PAGE_SIZE for some reason. --- Kernel/Heap/kmalloc.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/Kernel/Heap/kmalloc.cpp b/Kernel/Heap/kmalloc.cpp index 341a48a1bd..02558061b3 100644 --- a/Kernel/Heap/kmalloc.cpp +++ b/Kernel/Heap/kmalloc.cpp @@ -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 real_allocation_size = size; real_allocation_size += alignment; real_allocation_size += sizeof(ptrdiff_t) + sizeof(size_t); -- cgit v1.2.3