linux/arch/blackfin
Michael Hennerich 6e537e9329 Blackfin arch: Fix bug using usb keyboard crashes kernel
Without conswitchp preset, we have the following situation:

 - During initcalls: con_init is called, and returns because of
   !display_desc.

 - At this point there is no memory allocated for vc_cons[].d
   A bit later vty_init calls kbd_init.

 - From now on events are passed to kbd_event which will then call
   kbd_keycode.

 - kbd_keycode will oops on a NULL pointer dereference on vc->vc_tty

Signed-off-by: Michael Hennerich <michael.hennerich@analog.com>
Cc: Pekka Enberg <penberg@cs.helsinki.fi>
Signed-off-by: Bryan Wu <bryan.wu@analog.com>
[ Added commit description based on email thread. - Linus ]
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2007-05-21 09:50:22 -07:00
..
boot blackfin architecture 2007-05-07 12:12:58 -07:00
kernel Blackfin arch: Fix bug using usb keyboard crashes kernel 2007-05-21 09:50:22 -07:00
lib Blackfin arch: Add Workaround for ANOMALY 05000257 2007-05-21 09:50:21 -07:00
mach-bf533 Blackfin arch: add SPI MMC driver support on bf533-stamp, tested on STAMP-BF533 2007-05-21 09:50:21 -07:00
mach-bf537 Blackfin arch: fix a few random warnings 2007-05-21 09:50:21 -07:00
mach-bf561 Blackfin arch: Add configuration data for ISP176x on BF561 2007-05-21 09:50:21 -07:00
mach-common Blackfin arch: Add Workaround for ANOMALY 05000257 2007-05-21 09:50:21 -07:00
mm Blackfin arch: ISP1761 doesn't work for USB flash disk 2007-05-21 09:50:21 -07:00
oprofile blackfin architecture 2007-05-07 12:12:58 -07:00
Kconfig Blackfin arch: ISP1761 doesn't work for USB flash disk 2007-05-21 09:50:21 -07:00
Makefile blackfin architecture 2007-05-07 12:12:58 -07:00
defconfig blackfin architecture 2007-05-07 12:12:58 -07:00