diff --git a/sys/amd64/amd64/pmap.c b/sys/amd64/amd64/pmap.c index 1f4267963d6e..a84713fc991c 100644 --- a/sys/amd64/amd64/pmap.c +++ b/sys/amd64/amd64/pmap.c @@ -1293,7 +1293,7 @@ pmap_release_free_page(pmap_t pmap, vm_page_t p) pmap_kremove((vm_offset_t) pmap->pm_pdir); } - if (pmap->pm_ptphint && (pmap->pm_ptphint->pindex == p->pindex)) + if (pmap->pm_ptphint == p) pmap->pm_ptphint = NULL; p->wire_count--; diff --git a/sys/i386/i386/pmap.c b/sys/i386/i386/pmap.c index 1f4267963d6e..a84713fc991c 100644 --- a/sys/i386/i386/pmap.c +++ b/sys/i386/i386/pmap.c @@ -1293,7 +1293,7 @@ pmap_release_free_page(pmap_t pmap, vm_page_t p) pmap_kremove((vm_offset_t) pmap->pm_pdir); } - if (pmap->pm_ptphint && (pmap->pm_ptphint->pindex == p->pindex)) + if (pmap->pm_ptphint == p) pmap->pm_ptphint = NULL; p->wire_count--;