mirror of
https://github.com/yuzu-mirror/yuzu
synced 2024-11-30 23:39:15 +00:00
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.
This commit is contained in:
parent
c9269a4a4b
commit
1392597ede
1 changed files with 1 additions and 0 deletions
|
@ -190,6 +190,7 @@ VMManager::VMAIter VMManager::Unmap(VMAIter vma_handle) {
|
||||||
vma.type = VMAType::Free;
|
vma.type = VMAType::Free;
|
||||||
vma.permissions = VMAPermission::None;
|
vma.permissions = VMAPermission::None;
|
||||||
vma.state = MemoryState::Unmapped;
|
vma.state = MemoryState::Unmapped;
|
||||||
|
vma.attribute = MemoryAttribute::None;
|
||||||
|
|
||||||
vma.backing_block = nullptr;
|
vma.backing_block = nullptr;
|
||||||
vma.offset = 0;
|
vma.offset = 0;
|
||||||
|
|
Loading…
Reference in a new issue