mirror of
https://github.com/apache/nuttx.git
synced 2026-06-07 17:33:08 +08:00
kmm_map.c: Fix call to gran_alloc
Provide the handle to gran_alloc, not pointer to handle.
This commit is contained in:
committed by
Petro Karashchenko
parent
3e8575c39e
commit
b2f9926a1b
+1
-1
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user