Skip to content
Commit f39a97d0 authored by Boqun Feng's avatar Boqun Feng Committed by Miguel Ojeda
Browse files

rust: allocator: Use krealloc_aligned() in KernelAllocator::alloc



This fixes the potential issue that when KernelAllocator is used, the
allocation may be mis-aligned due to SLAB's alignment guarantee.

Signed-off-by: default avatarBoqun Feng <boqun.feng@gmail.com>
Reviewed-by: default avatarAndreas Hindborg <a.hindborg@samsung.com>
Link: https://lore.kernel.org/r/20230730012905.643822-3-boqun.feng@gmail.com


Signed-off-by: default avatarMiguel Ojeda <ojeda@kernel.org>
parent 917b2e00
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment