mirror of
https://github.com/apache/nuttx.git
synced 2025-01-13 13:18:50 +08:00
Granule allocator initialization uses wrong allocator to setting aside kernel memory
This commit is contained in:
parent
b05f29dbfe
commit
0c8830f9f3
1 changed files with 2 additions and 2 deletions
|
@ -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 */
|
||||
|
|
Loading…
Reference in a new issue