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
This commit is contained in:
Alan Cox 2008-07-18 22:05:51 +00:00
parent 53d13c6030
commit 59a23cacd4
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=180601
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -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);
}