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:
parent
53d13c6030
commit
59a23cacd4
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=180601
@ -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;
|
||||
|
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user