diff --git a/sys/ia64/ia64/pmap.c b/sys/ia64/ia64/pmap.c index 0460c1d529db..ea7a928bd0ad 100644 --- a/sys/ia64/ia64/pmap.c +++ b/sys/ia64/ia64/pmap.c @@ -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--;