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

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);
}
/*