diff options
author | Gregory Nutt <gnutt@nuttx.org> | 2014-09-03 13:46:05 -0600 |
---|---|---|
committer | Gregory Nutt <gnutt@nuttx.org> | 2014-09-03 13:46:05 -0600 |
commit | 4c448bf32281a4210bc16087be13cb31ff5acf5e (patch) | |
tree | bd673db039dc40078de3782f85155baa3d5c47b6 /nuttx | |
parent | 021cf46544be7eeb7900630cea0ee6ad768ba233 (diff) | |
download | px4-nuttx-4c448bf32281a4210bc16087be13cb31ff5acf5e.tar.gz px4-nuttx-4c448bf32281a4210bc16087be13cb31ff5acf5e.tar.bz2 px4-nuttx-4c448bf32281a4210bc16087be13cb31ff5acf5e.zip |
Granule allocator initialization uses wrong allocator to setting aside kernel memory
Diffstat (limited to 'nuttx')
-rw-r--r-- | nuttx/mm/mm_graninit.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/nuttx/mm/mm_graninit.c b/nuttx/mm/mm_graninit.c index 4905cb0b5..53c572328 100644 --- a/nuttx/mm/mm_graninit.c +++ b/nuttx/mm/mm_graninit.c @@ -39,11 +39,11 @@ #include <nuttx/config.h> -#include <stdlib.h> #include <assert.h> #include <errno.h> #include <nuttx/gran.h> +#include <nuttx/kmalloc.h> #include "mm_gran.h" @@ -127,7 +127,7 @@ gran_common_initialize(FAR void *heapstart, size_t heapsize, uint8_t log2gran, * correct size. */ - priv = ( FAR struct gran_s *)zalloc(SIZEOF_GRAN_S(ngranules)); + priv = ( FAR struct gran_s *)kmm_zalloc(SIZEOF_GRAN_S(ngranules)); if (priv) { /* Initialize non-zero elements of the granules heap info structure */ |