kmm_map.c: Fix call to gran_alloc
Provide the handle to gran_alloc, not pointer to handle.
This commit is contained in:
parent
3e8575c39e
commit
b2f9926a1b
|
@ -125,7 +125,7 @@ static FAR void *map_pages(FAR void **pages, size_t npages, int prot)
|
|||
|
||||
/* Find a virtual memory area that fits */
|
||||
|
||||
vaddr = gran_alloc(&g_kmm_map_vpages, size);
|
||||
vaddr = gran_alloc(g_kmm_map_vpages, size);
|
||||
if (!vaddr)
|
||||
{
|
||||
return NULL;
|
||||
|
|
Loading…
Reference in New Issue