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

demand_paging/backing_store/ram.c: misc fixups



First, do align the buffer. The slab code puts pointers in there and it
does not like it if those are not properly aligned.

And return the actual error code from k_mem_slab_alloc() even if errors
shouldn't happen (it did happen to me because of the above ... with
assertions disabled).

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