mirror of
https://github.com/apache/nuttx.git
synced 2026-05-23 14:58:13 +08:00
mm/kmap: Fix bug in kmm_unmap
Searching the current process mappings for kmappings is quite futile, do the search in the kernel's mappings instead.
This commit is contained in:
+1
-1
@@ -308,7 +308,7 @@ void kmm_unmap(FAR void *kaddr)
|
||||
{
|
||||
/* Find the entry, it is OK if none found */
|
||||
|
||||
entry = mm_map_find(get_current_mm(), kaddr, 1);
|
||||
entry = mm_map_find(&g_kmm_map, kaddr, 1);
|
||||
if (entry)
|
||||
{
|
||||
npages = MM_NPAGES(entry->length);
|
||||
|
||||
Reference in New Issue
Block a user