Source-Changes-HG archive

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

[src/trunk]: src/sys/uvm in uvm_obj_init(), KASSERT(ops), to ensure we have a...



details:   https://anonhg.NetBSD.org/src/rev/b5ff6a293d53
branches:  trunk
changeset: 811351:b5ff6a293d53
user:      mrg <mrg%NetBSD.org@localhost>
date:      Mon Oct 26 07:13:01 2015 +0000

description:
in uvm_obj_init(), KASSERT(ops), to ensure we have an actual pager ops
set for this object.  suggested by chuq.

diffstat:

 sys/uvm/uvm_object.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (26 lines):

diff -r 7bca06e0b633 -r b5ff6a293d53 sys/uvm/uvm_object.c
--- a/sys/uvm/uvm_object.c      Mon Oct 26 07:12:08 2015 +0000
+++ b/sys/uvm/uvm_object.c      Mon Oct 26 07:13:01 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: uvm_object.c,v 1.13 2015/08/24 22:50:32 pooka Exp $    */
+/*     $NetBSD: uvm_object.c,v 1.14 2015/10/26 07:13:01 mrg Exp $      */
 
 /*
  * Copyright (c) 2006, 2010 The NetBSD Foundation, Inc.
@@ -37,7 +37,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: uvm_object.c,v 1.13 2015/08/24 22:50:32 pooka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uvm_object.c,v 1.14 2015/10/26 07:13:01 mrg Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_ddb.h"
@@ -62,6 +62,7 @@
     bool alock, u_int refs)
 {
 
+       KASSERT(ops);
        if (alock) {
                /* Allocate and assign a lock. */
                uo->vmobjlock = mutex_obj_alloc(MUTEX_DEFAULT, IPL_NONE);



Home | Main Index | Thread Index | Old Index