Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/xen/x86 Correction to previous.
details: https://anonhg.NetBSD.org/src/rev/da551e1df79a
branches: trunk
changeset: 968227:da551e1df79a
user: ad <ad%NetBSD.org@localhost>
date: Tue Jan 07 13:48:01 2020 +0000
description:
Correction to previous.
diffstat:
sys/arch/xen/x86/xen_pmap.c | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
diffs (29 lines):
diff -r a52571839aa6 -r da551e1df79a sys/arch/xen/x86/xen_pmap.c
--- a/sys/arch/xen/x86/xen_pmap.c Tue Jan 07 13:44:23 2020 +0000
+++ b/sys/arch/xen/x86/xen_pmap.c Tue Jan 07 13:48:01 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: xen_pmap.c,v 1.36 2020/01/07 13:20:18 ad Exp $ */
+/* $NetBSD: xen_pmap.c,v 1.37 2020/01/07 13:48:01 ad Exp $ */
/*
* Copyright (c) 2007 Manuel Bouyer.
@@ -101,7 +101,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: xen_pmap.c,v 1.36 2020/01/07 13:20:18 ad Exp $");
+__KERNEL_RCSID(0, "$NetBSD: xen_pmap.c,v 1.37 2020/01/07 13:48:01 ad Exp $");
#include "opt_user_ldt.h"
#include "opt_lockdebug.h"
@@ -220,7 +220,9 @@
pmap_map_ptes(pmap, &pmap2, &ptes, &pdes);
if (!pmap_pdes_valid(va, pdes, &pde, &lvl)) {
pmap_unmap_ptes(pmap, pmap2);
- mutex_exit(&pmap->pm_lock);
+ if (pmap != pmap_kernel()) {
+ mutex_exit(&pmap->pm_lock);
+ }
return false;
}
Home |
Main Index |
Thread Index |
Old Index