From b2f9926a1be12a1ce85c1c92fdad220c98ab77f7 Mon Sep 17 00:00:00 2001 From: Ville Juven Date: Tue, 3 Oct 2023 12:51:36 +0300 Subject: [PATCH] kmm_map.c: Fix call to gran_alloc Provide the handle to gran_alloc, not pointer to handle. --- mm/kmap/kmm_map.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mm/kmap/kmm_map.c b/mm/kmap/kmm_map.c index 1312e6af0e..d6d1c6c9fa 100644 --- a/mm/kmap/kmm_map.c +++ b/mm/kmap/kmm_map.c @@ -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;