1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-31 16:57:10 +00:00

Check the correct value in db_validate_address, pmap_extract returns 0 on

failure.

Sponsored by:	ABT Systems Ltd
This commit is contained in:
Andrew Turner 2015-08-11 12:32:17 +00:00
parent a3b3a9752c
commit c8d372efdd
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=286627

View File

@ -119,7 +119,7 @@ db_validate_address(vm_offset_t addr)
else
pmap = p->p_vmspace->vm_map.pmap;
return (pmap_extract(pmap, addr) == FALSE);
return (pmap_extract(pmap, addr) != 0);
}
/*