Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/arm/arm32 It expects return value 'va != NULL' from...



details:   https://anonhg.NetBSD.org/src/rev/d3856452386f
branches:  trunk
changeset: 331902:d3856452386f
user:      kiyohara <kiyohara%NetBSD.org@localhost>
date:      Sat Aug 30 13:02:01 2014 +0000

description:
It expects return value 'va != NULL' from uvm_km_alloc().

diffstat:

 sys/arch/arm/arm32/pmap.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 3166fe0a4bb2 -r d3856452386f sys/arch/arm/arm32/pmap.c
--- a/sys/arch/arm/arm32/pmap.c Sat Aug 30 12:23:38 2014 +0000
+++ b/sys/arch/arm/arm32/pmap.c Sat Aug 30 13:02:01 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pmap.c,v 1.297 2014/08/13 15:06:28 matt Exp $  */
+/*     $NetBSD: pmap.c,v 1.298 2014/08/30 13:02:01 kiyohara Exp $      */
 
 /*
  * Copyright 2003 Wasabi Systems, Inc.
@@ -216,7 +216,7 @@
 #include <arm/locore.h>
 //#include <arm/arm32/katelib.h>
 
-__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.297 2014/08/13 15:06:28 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.298 2014/08/30 13:02:01 kiyohara Exp $");
 
 //#define PMAP_DEBUG
 #ifdef PMAP_DEBUG
@@ -1312,7 +1312,7 @@
        KASSERTMSG(kernel_map != NULL, "pm %p", pm);
        vaddr_t va = uvm_km_alloc(kernel_map, PAGE_SIZE, 0,
            UVM_KMF_WIRED|UVM_KMF_ZERO);
-       KASSERT(!va);
+       KASSERT(va);
        pmap_extract(pmap_kernel(), va, &pm->pm_l1_pa);
 #endif
        pm->pm_l1 = (pd_entry_t *)va;



Home | Main Index | Thread Index | Old Index