Browse Source
Merge pull request #1949 from lioncash/unmap
kernel/vm_manager: Reset region attributes when unmapping a VMA
pull/15/merge
bunnei
7 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
0 deletions
-
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; |
|
|
|
|