Fix a bug in the tty clist code. The clist code was only protecting itself
authorMatthew Dillon <dillon@dragonflybsd.org>
Thu, 7 Oct 2004 01:32:04 +0000 (01:32 +0000)
committerMatthew Dillon <dillon@dragonflybsd.org>
Thu, 7 Oct 2004 01:32:04 +0000 (01:32 +0000)
commita38e57d5b87a200ae94ece676d5326fb9eca15fb
treeb7ca1b33e4c4a5636d4bfc282bcef755b2bcbae0
parent417215fef2bf1949cb4611742759f51fb4a23b02
Fix a bug in the tty clist code.  The clist code was only protecting itself
with spltty() but the keyboard code uses clists too, and USB interrupts
(for USB keyboards) aren't protected by spltty().   Generally convert the
spl's to critical sections to solve the problem.
sys/dev/misc/kbd/kbd.c
sys/kern/tty.c
sys/kern/tty_subr.c