mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-08 17:40:31 +00:00
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 a new issue