diff options
author | alc <alc@FreeBSD.org> | 2008-07-18 22:05:51 +0000 |
---|---|---|
committer | alc <alc@FreeBSD.org> | 2008-07-18 22:05:51 +0000 |
commit | 493038bc03ad468939e835233b0fc55be984eee2 (patch) | |
tree | 100699d71c30b30828ab2fe3c60440ecb8bc6b60 /sys/i386 | |
parent | 07ead1871536cc17dfecbaa10fd4b92fb73c1e4c (diff) | |
download | FreeBSD-src-493038bc03ad468939e835233b0fc55be984eee2.zip FreeBSD-src-493038bc03ad468939e835233b0fc55be984eee2.tar.gz |
Correct an error in pmap_change_attr()'s initial loop that verifies that the
given range of addresses are mapped. Previously, the loop was testing the
same address every time.
Submitted by: Magesh Dhasayyan
Diffstat (limited to 'sys/i386')
-rw-r--r-- | sys/i386/i386/pmap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/i386/i386/pmap.c b/sys/i386/i386/pmap.c index a9c0cb7..dc09268 100644 --- a/sys/i386/i386/pmap.c +++ b/sys/i386/i386/pmap.c @@ -4447,7 +4447,7 @@ pmap_change_attr(va, size, mode) return (EINVAL); if (*pde == 0) return (EINVAL); - pte = vtopte(va); + pte = vtopte(tmpva); if (*pte == 0) return (EINVAL); } |