Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/x86/x86 Fix stupid mistake, I didn't reflect correc...



details:   https://anonhg.NetBSD.org/src/rev/614ca4b09ab9
branches:  trunk
changeset: 449007:614ca4b09ab9
user:      maxv <maxv%NetBSD.org@localhost>
date:      Mon Feb 18 19:03:12 2019 +0000

description:
Fix stupid mistake, I didn't reflect correctly the behavior of pmap_sync_pv
in the EPT callback, 'optep' can be NULL.

diffstat:

 sys/arch/x86/x86/pmap.c |  7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diffs (28 lines):

diff -r ff6ea6f66e0f -r 614ca4b09ab9 sys/arch/x86/x86/pmap.c
--- a/sys/arch/x86/x86/pmap.c   Mon Feb 18 12:17:45 2019 +0000
+++ b/sys/arch/x86/x86/pmap.c   Mon Feb 18 19:03:12 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pmap.c,v 1.323 2019/02/14 08:18:25 cherry Exp $        */
+/*     $NetBSD: pmap.c,v 1.324 2019/02/18 19:03:12 maxv Exp $  */
 
 /*
  * Copyright (c) 2008, 2010, 2016, 2017 The NetBSD Foundation, Inc.
@@ -130,7 +130,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.323 2019/02/14 08:18:25 cherry Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.324 2019/02/18 19:03:12 maxv Exp $");
 
 #include "opt_user_ldt.h"
 #include "opt_lockdebug.h"
@@ -5557,7 +5557,8 @@
        pmap_unmap_pte();
 
        *oattrs = pmap_ept_to_pp_attrs(opte);
-       *optep = opte;
+       if (optep != NULL)
+               *optep = opte;
        return 0;
 }
 



Home | Main Index | Thread Index | Old Index