Skip to content
Snippets Groups Projects
Commit 0c8830f9 authored by Gregory Nutt's avatar Gregory Nutt
Browse files

Granule allocator initialization uses wrong allocator to setting aside kernel memory

parent b05f29db
No related branches found
No related tags found
No related merge requests found
......@@ -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 */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment