Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/arm32/vidc/console Always restore the spl value whe...



details:   https://anonhg.NetBSD.org/src/rev/37fa88a3576e
branches:  trunk
changeset: 507269:37fa88a3576e
user:      rearnsha <rearnsha%NetBSD.org@localhost>
date:      Sun Mar 18 17:03:26 2001 +0000

description:
Always restore the spl value when returning form physconkbd.

diffstat:

 sys/arch/arm32/vidc/console/console.c |  7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diffs (21 lines):

diff -r 5baba2ca7621 -r 37fa88a3576e sys/arch/arm32/vidc/console/console.c
--- a/sys/arch/arm32/vidc/console/console.c     Sun Mar 18 17:00:56 2001 +0000
+++ b/sys/arch/arm32/vidc/console/console.c     Sun Mar 18 17:03:26 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: console.c,v 1.22 2001/02/21 00:51:28 reinoud Exp $     */
+/*     $NetBSD: console.c,v 1.23 2001/03/18 17:03:26 rearnsha Exp $    */
 
 /*
  * Copyright (c) 1994-1995 Melvyn Tang-Richardson
@@ -787,7 +787,10 @@
 
        tp = vconsole_current->tp;
 
-       if (tp == NULL) return(1);
+       if (tp == NULL) {
+               (void)splx(s);
+               return(1);
+       }
 
        if ((tp->t_state & TS_ISOPEN) == 0) {
                (void)splx(s);



Home | Main Index | Thread Index | Old Index