Skip to content
Commit 8140680e authored by Nicolas Pitre's avatar Nicolas Pitre Committed by Anas Nashif
Browse files

k_heap_aligned_alloc: validate the alignment argument



There is a special internal understanding between `z_alloc_helper()`
and `sys_heap_aligned_alloc()` for the meaning of non-power-of-two
alignment values. There was a time when `z_alloc_helper()` was expressed
in terms of `k_heap_aligned_alloc()` so the later had to accept special
alignment values from the former. This is no longer the case and
`k_heap_aligned_alloc()` should enforce proper alignment values now.

Signed-off-by: default avatarNicolas Pitre <npitre@baylibre.com>
parent 4eaaf3c0
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment