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 Petro Karashchenko
parent 3e8575c39e
commit b2f9926a1b
1 changed files with 1 additions and 1 deletions

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 */ /* 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) if (!vaddr)
{ {
return NULL; return NULL;