kernel/vm: Put the address space in get_memory_map_etc.

We don't need a lock here (as we just want the TranslationMap),
but we do need to release the reference we acquired when finished,
otherwise the address space will be leaked.
This commit is contained in:
Augustin Cavalier
2025-12-15 21:21:51 -05:00
parent 24f5beed39
commit 51d39dc74f
+1
View File
@@ -5640,6 +5640,7 @@ get_memory_map_etc(team_id team, const void* address, size_t numBytes,
if (addressSpace == NULL)
return B_ERROR;
VMAddressSpacePutter addressSpacePutter(addressSpace);
VMTranslationMap* map = addressSpace->TranslationMap();
if (interrupts)