Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/hp300/dev Fix keyboard related panic when ite devic...
details: https://anonhg.NetBSD.org/src/rev/dc0c9aad3679
branches: trunk
changeset: 495766:dc0c9aad3679
user: tsutsui <tsutsui%NetBSD.org@localhost>
date: Fri Aug 04 17:22:09 2000 +0000
description:
Fix keyboard related panic when ite device is configured
but not attached, per port-hp300/10750.
Approved by thorpej.
diffstat:
sys/arch/hp300/dev/ite.c | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
diffs (25 lines):
diff -r 3f3b49b74270 -r dc0c9aad3679 sys/arch/hp300/dev/ite.c
--- a/sys/arch/hp300/dev/ite.c Fri Aug 04 14:58:52 2000 +0000
+++ b/sys/arch/hp300/dev/ite.c Fri Aug 04 17:22:09 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ite.c,v 1.43 2000/03/23 06:37:23 thorpej Exp $ */
+/* $NetBSD: ite.c,v 1.44 2000/08/04 17:22:09 tsutsui Exp $ */
/*-
* Copyright (c) 1996, 1997 The NetBSD Foundation, Inc.
@@ -526,11 +526,13 @@
static int capsmode = 0;
static int metamode = 0;
char code, *str;
- struct tty *kbd_tty = kbd_ite->tty;
+ struct tty *kbd_tty;
- if (kbd_tty == NULL)
+ if (kbd_ite == NULL || kbd_ite->tty == NULL)
return;
+ kbd_tty = kbd_ite->tty;
+
switch (c & 0xFF) {
case KBD_CAPSLOCK:
capsmode = !capsmode;
Home |
Main Index |
Thread Index |
Old Index