Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/mips/mips spl leak, found by mootja
details: https://anonhg.NetBSD.org/src/rev/66413c4e2ac8
branches: trunk
changeset: 355892:66413c4e2ac8
user: maxv <maxv%NetBSD.org@localhost>
date: Sun Aug 20 11:06:35 2017 +0000
description:
spl leak, found by mootja
diffstat:
sys/arch/mips/mips/cpu_subr.c | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
diffs (30 lines):
diff -r f83526a03b62 -r 66413c4e2ac8 sys/arch/mips/mips/cpu_subr.c
--- a/sys/arch/mips/mips/cpu_subr.c Sun Aug 20 11:05:24 2017 +0000
+++ b/sys/arch/mips/mips/cpu_subr.c Sun Aug 20 11:06:35 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: cpu_subr.c,v 1.32 2017/05/07 04:14:20 skrll Exp $ */
+/* $NetBSD: cpu_subr.c,v 1.33 2017/08/20 11:06:35 maxv Exp $ */
/*-
* Copyright (c) 2010 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: cpu_subr.c,v 1.32 2017/05/07 04:14:20 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: cpu_subr.c,v 1.33 2017/08/20 11:06:35 maxv Exp $");
#include "opt_cputype.h"
#include "opt_ddb.h"
@@ -771,8 +771,10 @@
int s = splhigh();
cpuid_t cii = cpu_index(curcpu());
- if (__predict_false(cold))
+ if (__predict_false(cold)) {
+ splx(s);
return;
+ }
do {
kcpuset_atomic_set(cpus_paused, cii);
Home |
Main Index |
Thread Index |
Old Index