Module Name:    src
Committed By:   reinoud
Date:           Sat Aug 27 17:59:24 UTC 2011

Modified Files:
        src/sys/arch/usermode/usermode: pmap.c

Log Message:
Only return the result of pmap_extract() when the return variable is not NULL.


To generate a diff of this commit:
cvs rdiff -u -r1.37 -r1.38 src/sys/arch/usermode/usermode/pmap.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/usermode/usermode/pmap.c
diff -u src/sys/arch/usermode/usermode/pmap.c:1.37 src/sys/arch/usermode/usermode/pmap.c:1.38
--- src/sys/arch/usermode/usermode/pmap.c:1.37	Fri Aug 26 11:16:50 2011
+++ src/sys/arch/usermode/usermode/pmap.c	Sat Aug 27 17:59:24 2011
@@ -1,4 +1,4 @@
-/* $NetBSD: pmap.c,v 1.37 2011/08/26 11:16:50 jmcneill Exp $ */
+/* $NetBSD: pmap.c,v 1.38 2011/08/27 17:59:24 reinoud Exp $ */
 
 /*-
  * Copyright (c) 2011 Reinoud Zandijk <rein...@netbsd.org>
@@ -27,7 +27,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.37 2011/08/26 11:16:50 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.38 2011/08/27 17:59:24 reinoud Exp $");
 
 #include "opt_memsize.h"
 #include "opt_kmempages.h"
@@ -638,7 +638,7 @@
 void
 pmap_remove_all(pmap_t pmap)
 {
-aprint_debug("pmap_remove_all not implemented\n");
+aprint_debug("pmap_remove_all() called\n");
 }
 
 void
@@ -665,7 +665,8 @@
 	if (pv == NULL)
 		return false;
 
-	*pap = ptoa(pv->pv_ppn);
+	if (pap)
+		*pap = ptoa(pv->pv_ppn);
 	return true;
 }
 

Reply via email to