kmm_map.c: Fix call to gran_alloc

Provide the handle to gran_alloc, not pointer to handle.
This commit is contained in:
Ville Juven 2023-10-03 12:51:36 +03:00 committed by Xiang Xiao
parent ddfaa97601
commit 3a4abdee7d

View file

@ -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;