Author: loos
Date: Tue Aug 14 15:27:50 2018
New Revision: 337759
URL: https://svnweb.freebsd.org/changeset/base/337759

Log:
  Use the correct PTE when changing the attribute of multiple pages.
  
  Submitted by: andrew (long time ago)
  Sponsored by: Rubicon Communications, LLC (Netgate)

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

Modified: head/sys/arm64/arm64/pmap.c
==============================================================================
--- head/sys/arm64/arm64/pmap.c Tue Aug 14 14:50:06 2018        (r337758)
+++ head/sys/arm64/arm64/pmap.c Tue Aug 14 15:27:50 2018        (r337759)
@@ -4813,7 +4813,7 @@ pmap_change_attr_locked(vm_offset_t va, vm_size_t size
                return (EINVAL);
 
        for (tmpva = base; tmpva < base + size; ) {
-               pte = pmap_pte(kernel_pmap, va, &lvl);
+               pte = pmap_pte(kernel_pmap, tmpva, &lvl);
                if (pte == NULL)
                        return (EINVAL);
 
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to