fix: properly assign frame owners and deallocate in all required places
This commit is contained in:
@@ -45,9 +45,9 @@ pagedir_destroy (uint32_t *pd)
|
||||
{
|
||||
if (page_is_shared_pte (pte))
|
||||
continue;
|
||||
if (page_in_swap_pte (pte))
|
||||
else if (page_in_swap_pte (pte))
|
||||
swap_drop (page_get_swap_pte (pte));
|
||||
if (*pte & PTE_P)
|
||||
else if (*pte & PTE_P)
|
||||
frame_free (pte_get_page (*pte));
|
||||
}
|
||||
palloc_free_page (pt);
|
||||
|
||||
Reference in New Issue
Block a user