user-space memalign() must not be called from within the OS.

drivers/net/ftmac100.c, libs/libc/stdlib/lib_aligned_alloc.c

A continuation of PRs #1507, #1510, and #1512.  See Issue #1481 for additional information.
This commit is contained in:
Gregory Nutt
2020-08-04 14:08:04 -06:00
committed by Abdelatif Guettouche
parent d09f6aaa72
commit 188d4b0fb4
3 changed files with 67 additions and 63 deletions
+2 -2
View File
@@ -22,7 +22,7 @@
* Included Files
****************************************************************************/
#include <stdlib.h>
#include <libc.h>
/****************************************************************************
* Public Functions
@@ -30,5 +30,5 @@
FAR void *aligned_alloc(size_t align, size_t size)
{
return memalign(align, size);
return lib_memalign(align, size);
}