From 77b54c35bf9587450cd636e0d7df37e190e28bfb Mon Sep 17 00:00:00 2001 From: Andrew Opalach Date: Mon, 13 Apr 2026 17:01:47 -0400 Subject: Smaller stuff that went uncommitted Signed-off-by: Andrew Opalach --- src/codec/common.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/codec/common.h') diff --git a/src/codec/common.h b/src/codec/common.h index 98665d7..1b468cb 100644 --- a/src/codec/common.h +++ b/src/codec/common.h @@ -6,7 +6,10 @@ static inline void *camu_page_alloc(size_t size) { #ifdef AL_HAVE_POSIX_MEMALIGN void *ptr = NULL; - al_posix_memalign(&ptr, al_page_size, size); + if (al_posix_memalign(&ptr, al_page_size, size) != 0) { + // For possible EINVAL rather than ENOMEM. + return NULL; + } return ptr; #else return al_malloc(size); -- cgit v1.2.3-101-g0448