1
0
Fork 0
forked from suyu/suyu

Merge pull request #1949 from lioncash/unmap

kernel/vm_manager: Reset region attributes when unmapping a VMA
This commit is contained in:
bunnei 2018-12-27 11:04:26 -05:00 committed by GitHub
commit 7477c12fe2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;