summaryrefslogtreecommitdiffstats
path: root/drivers/s390/char/sclp.c
diff options
context:
space:
mode:
authorPeter Oberparleiter <oberpar@linux.vnet.ibm.com>2014-04-09 13:10:05 +0200
committerMartin Schwidefsky <schwidefsky@de.ibm.com>2014-04-11 13:53:38 +0200
commite106e4ea44699cc940a919924f2834b91f426d9f (patch)
tree3eb2b8230a0ef43de5965dc5381d58db1bd4b41c /drivers/s390/char/sclp.c
parent572c3eb7f841c019f756efc68debbc3187c2a62c (diff)
downloadblackbird-op-linux-e106e4ea44699cc940a919924f2834b91f426d9f.tar.gz
blackbird-op-linux-e106e4ea44699cc940a919924f2834b91f426d9f.zip
s390/sclp_vt220: Fix kernel panic due to early terminal input
A kernel panic might occur when there is terminal input available via the SCLP VT220 interface at an early time during the boot process. The processing of terminal input requires prior initialization which is done via an early_initcall function (init_workqueues) while the SCLP VT220 driver registers for terminal input during a console_initcall function (sclp_vt220_con_init). When there is terminal input available via the SCLP interface between console_initcall and early_initcall, a null pointer dereference occurs (system_wq is null). Fix this problem by moving the registration for terminal input to a device_initcall function (sclp_vt220_tty_init). Reported-by: Christian Borntraeger <borntraeger@de.ibm.com> Tested-by: Christian Borntraeger <borntraeger@de.ibm.com> Signed-off-by: Peter Oberparleiter <oberpar@linux.vnet.ibm.com> Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'drivers/s390/char/sclp.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud