patch-2.0.37 linux/drivers/char/keyboard.c
Next file: linux/drivers/char/random.c
Previous file: linux/drivers/char/isicom.c
Back to the patch index
Back to the overall index
- Lines: 16
- Date:
Sun Jun 13 10:21:00 1999
- Orig file:
v2.0.36/linux/drivers/char/keyboard.c
- Orig date:
Mon Aug 11 13:42:11 1997
diff -u --recursive --new-file v2.0.36/linux/drivers/char/keyboard.c linux/drivers/char/keyboard.c
@@ -374,8 +374,13 @@
mark_bh(CONSOLE_BH);
add_keyboard_randomness(scancode);
- tty = ttytab[fg_console];
- kbd = kbd_table + fg_console;
+ tty = ttytab? ttytab[fg_console]: NULL;
+ if (tty && (!tty->driver_data)) {
+ /* This is to workaround ugly bug in tty_io.c, which
+ does not do locking when it should */
+ tty = NULL;
+ }
+ kbd = kbd_table + fg_console;
if ((raw_mode = (kbd->kbdmode == VC_RAW))) {
put_queue(scancode);
/* we do not return yet, because we want to maintain
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov