Author: kmacy
Date: Sun Apr 25 23:51:05 2010
New Revision: 207213
URL: http://svn.freebsd.org/changeset/base/207213

Log:
  missed pv access before pmap lock

Modified:
  head/sys/amd64/amd64/pmap.c

Modified: head/sys/amd64/amd64/pmap.c
==============================================================================
--- head/sys/amd64/amd64/pmap.c Sun Apr 25 23:49:32 2010        (r207212)
+++ head/sys/amd64/amd64/pmap.c Sun Apr 25 23:51:05 2010        (r207213)
@@ -2793,9 +2793,9 @@ pmap_remove_all(vm_page_t m)
        mtx_assert(&vm_page_queue_mtx, MA_OWNED);
        pvh = pa_to_pvh(VM_PAGE_TO_PHYS(m));
        while ((pv = TAILQ_FIRST(&pvh->pv_list)) != NULL) {
-               va = pv->pv_va;
                pmap = PV_PMAP(pv);
                PMAP_LOCK(pmap);
+               va = pv->pv_va;
                pde = pmap_pde(pmap, va);
                (void)pmap_demote_pde(pmap, pde, va);
                PMAP_UNLOCK(pmap);
_______________________________________________
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to