Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/alpha/alpha Fix a silly mistake (missing return) in...



details:   https://anonhg.NetBSD.org/src/rev/76e562b7312f
branches:  trunk
changeset: 1022650:76e562b7312f
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Sat Jul 31 14:51:25 2021 +0000

description:
Fix a silly mistake (missing return) in the DEBUG case of the kernel pmap
case of pmap_extract().

diffstat:

 sys/arch/alpha/alpha/pmap.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (26 lines):

diff -r e9a602339752 -r 76e562b7312f sys/arch/alpha/alpha/pmap.c
--- a/sys/arch/alpha/alpha/pmap.c       Sat Jul 31 14:47:04 2021 +0000
+++ b/sys/arch/alpha/alpha/pmap.c       Sat Jul 31 14:51:25 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pmap.c,v 1.299 2021/07/19 16:31:19 thorpej Exp $ */
+/* $NetBSD: pmap.c,v 1.300 2021/07/31 14:51:25 thorpej Exp $ */
 
 /*-
  * Copyright (c) 1998, 1999, 2000, 2001, 2007, 2008, 2020
@@ -135,7 +135,7 @@
 
 #include <sys/cdefs.h>                 /* RCS ID & Copyright macro defns */
 
-__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.299 2021/07/19 16:31:19 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.300 2021/07/31 14:51:25 thorpej Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -2587,6 +2587,7 @@
                                printf("failed (kernel vtophys)\n");
                        }
                }
+               return address_is_valid;
 #else
                return vtophys_internal(va, pap);
 #endif



Home | Main Index | Thread Index | Old Index