Always restore the spl value when returning form physconkbd.

This commit is contained in:
rearnsha 2001-03-18 17:03:26 +00:00
parent 62dd3b3608
commit f8ffa07954
1 changed files with 5 additions and 2 deletions

View File

@ -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 * Copyright (c) 1994-1995 Melvyn Tang-Richardson
@ -787,7 +787,10 @@ physconkbd(key)
tp = vconsole_current->tp; tp = vconsole_current->tp;
if (tp == NULL) return(1); if (tp == NULL) {
(void)splx(s);
return(1);
}
if ((tp->t_state & TS_ISOPEN) == 0) { if ((tp->t_state & TS_ISOPEN) == 0) {
(void)splx(s); (void)splx(s);