summaryrefslogtreecommitdiff
path: root/Kernel/Heap/kmalloc.cpp
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2021-12-26 18:37:46 +0100
committerAndreas Kling <kling@serenityos.org>2021-12-26 21:22:59 +0100
commitf6c594fa2941236044d86437441fc49340738a44 (patch)
treeaff6c82ca540e825c5497ef4a1e8320a2ede71ce /Kernel/Heap/kmalloc.cpp
parent9182653a0faa087a5cd8121402fad6c1d3efb353 (diff)
downloadserenity-f6c594fa2941236044d86437441fc49340738a44.zip
Kernel: Remove arbitrary alignment requirement from kmalloc_aligned()
We were not allowing alignments greater than PAGE_SIZE for some reason.
Diffstat (limited to 'Kernel/Heap/kmalloc.cpp')
-rw-r--r--Kernel/Heap/kmalloc.cpp1
1 files changed, 0 insertions, 1 deletions
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<size_t> real_allocation_size = size;
real_allocation_size += alignment;
real_allocation_size += sizeof(ptrdiff_t) + sizeof(size_t);