In pmap_remove_pv(), only manipulate the page's list if the pv is

managed.
This commit is contained in:
Doug Rabson 2000-10-16 17:06:32 +00:00
parent 85a25ab3d5
commit e296c9c9f7

View File

@ -961,7 +961,7 @@ pmap_remove_pv(pmap_t pmap, pv_entry_t pv, vm_page_t m)
if (!rtval)
return rtval;
if (m) {
if ((pv->pv_pte.pte_ig & PTE_IG_MANAGED) && m) {
TAILQ_REMOVE(&m->md.pv_list, pv, pv_list);
m->md.pv_list_count--;