mirror of
https://github.com/apache/nuttx.git
synced 2026-05-23 14:58:13 +08:00
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:
committed by
Abdelatif Guettouche
parent
d09f6aaa72
commit
188d4b0fb4
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user