git: e24c1997bf5c - stable/14 - arm: pmap_extract() returns a PA not a boolean value

From: John Baldwin <jhb_at_FreeBSD.org>
Date: Mon, 08 Apr 2024 19:04:25 UTC
The branch stable/14 has been updated by jhb:

URL: https://cgit.FreeBSD.org/src/commit/?id=e24c1997bf5cffc176906761fb04d90803ab838c

commit e24c1997bf5cffc176906761fb04d90803ab838c
Author:     John Baldwin <jhb@FreeBSD.org>
AuthorDate: 2024-02-02 22:59:03 +0000
Commit:     John Baldwin <jhb@FreeBSD.org>
CommitDate: 2024-04-08 17:50:26 +0000

    arm: pmap_extract() returns a PA not a boolean value
    
    Assume a PA of 0 indicates an invalid virtual address.
    
    Reviewed by:    markj
    Differential Revision:  https://reviews.freebsd.org/D43694
    
    (cherry picked from commit afb1a3e30c05a0f69facff7df59547ec82e3531a)
---
 sys/arm/arm/db_interface.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys/arm/arm/db_interface.c b/sys/arm/arm/db_interface.c
index 5478d9d56f25..8aad6a42316e 100644
--- a/sys/arm/arm/db_interface.c
+++ b/sys/arm/arm/db_interface.c
@@ -172,7 +172,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);
 }
 
 /*