Source-Changes-HG archive

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

[src/netbsd-1-5]: src/sys/arch/hp300/dev pull up 1.44 (approved by thorpej):



details:   https://anonhg.NetBSD.org/src/rev/b9a72eabaa18
branches:  netbsd-1-5
changeset: 488877:b9a72eabaa18
user:      tsutsui <tsutsui%NetBSD.org@localhost>
date:      Fri Aug 04 18:53:23 2000 +0000

description:
pull up 1.44 (approved by thorpej):
Fix keyboard related panic when ite device is configured
but not attached, per port-hp300/10750.

diffstat:

 sys/arch/hp300/dev/ite.c |  8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diffs (25 lines):

diff -r 443b04a7c359 -r b9a72eabaa18 sys/arch/hp300/dev/ite.c
--- a/sys/arch/hp300/dev/ite.c  Fri Aug 04 15:11:58 2000 +0000
+++ b/sys/arch/hp300/dev/ite.c  Fri Aug 04 18:53:23 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.43.4.1 2000/08/04 18:53:23 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