mirror of
https://github.com/justinian/jsix.git
synced 2025-12-10 00:14:32 -08:00
[kernel] Fix vm_space extra deletion
vm_space::clear() was freeing pages on process exit even when free was false, and potentially double-freeing some pages.
This commit is contained in:
@@ -212,7 +212,6 @@ vm_space::clear(const vm_area &vma, uintptr_t offset, size_t count, bool free)
|
|||||||
free_start = phys;
|
free_start = phys;
|
||||||
free_count = 1;
|
free_count = 1;
|
||||||
}
|
}
|
||||||
fa.free(e & ~0xfffull, 1);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
e = 0;
|
e = 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user