Browse Source

kernel/vm_manager: Reset region attributes when unmapping a VMA

Like the other members related to memory regions, the attributes need to
be reset back to their defaults as well.
nce_cpp
Lioncash 7 years ago
parent
commit
b51e57a751
  1. 1
      src/core/hle/kernel/vm_manager.cpp

1
src/core/hle/kernel/vm_manager.cpp

@ -190,6 +190,7 @@ VMManager::VMAIter VMManager::Unmap(VMAIter vma_handle) {
vma.type = VMAType::Free;
vma.permissions = VMAPermission::None;
vma.state = MemoryState::Unmapped;
vma.attribute = MemoryAttribute::None;
vma.backing_block = nullptr;
vma.offset = 0;

Loading…
Cancel
Save