From 493038bc03ad468939e835233b0fc55be984eee2 Mon Sep 17 00:00:00 2001 From: alc Date: Fri, 18 Jul 2008 22:05:51 +0000 Subject: 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 --- sys/amd64/amd64/pmap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/amd64') 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; -- cgit v1.1