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 Re-enable kpreemption in an error path. ...



details:   https://anonhg.NetBSD.org/src/rev/001c1932b2e4
branches:  trunk
changeset: 981840:001c1932b2e4
user:      skrll <skrll%NetBSD.org@localhost>
date:      Tue Mar 23 06:35:24 2021 +0000

description:
Re-enable kpreemption in an error path.  Spotted by nat@

diffstat:

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

diffs (27 lines):

diff -r a0a3fd2fcf6f -r 001c1932b2e4 sys/arch/arm/arm32/pmap.c
--- a/sys/arch/arm/arm32/pmap.c Mon Mar 22 21:52:26 2021 +0000
+++ b/sys/arch/arm/arm32/pmap.c Tue Mar 23 06:35:24 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pmap.c,v 1.426 2021/03/14 10:36:46 skrll Exp $ */
+/*     $NetBSD: pmap.c,v 1.427 2021/03/23 06:35:24 skrll Exp $ */
 
 /*
  * Copyright 2003 Wasabi Systems, Inc.
@@ -192,7 +192,7 @@
 #endif
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.426 2021/03/14 10:36:46 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.427 2021/03/23 06:35:24 skrll Exp $");
 
 #include <sys/param.h>
 #include <sys/types.h>
@@ -3281,6 +3281,8 @@
                                        pmap_free_l2_bucket(pm, l2b, 0);
                                        UVMHIST_LOG(maphist, "  <-- done (ENOMEM)",
                                            0, 0, 0, 0);
+                                       kpreempt_enable();
+
                                        return ENOMEM;
                                }
                        }



Home | Main Index | Thread Index | Old Index