summaryrefslogtreecommitdiffstats
path: root/sys/amd64
diff options
context:
space:
mode:
authoralc <alc@FreeBSD.org>2008-07-18 22:05:51 +0000
committeralc <alc@FreeBSD.org>2008-07-18 22:05:51 +0000
commit493038bc03ad468939e835233b0fc55be984eee2 (patch)
tree100699d71c30b30828ab2fe3c60440ecb8bc6b60 /sys/amd64
parent07ead1871536cc17dfecbaa10fd4b92fb73c1e4c (diff)
downloadFreeBSD-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/amd64')
-rw-r--r--sys/amd64/amd64/pmap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/amd64/amd64/pmap.c b/sys/amd64/amd64/pmap.c
index 6e92d23..4f8c967 100644
--- a/sys/amd64/amd64/pmap.c
+++ b/sys/amd64/amd64/pmap.c
@@ -4389,7 +4389,7 @@ pmap_change_attr(va, size, mode)
}
return (EINVAL);
}
- pte = vtopte(va);
+ pte = vtopte(tmpva);
if (*pte == 0)
return (EINVAL);
tmpva += PAGE_SIZE;
OpenPOWER on IntegriCloud