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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user