summaryrefslogtreecommitdiffstats
path: root/drivers/tty/serial/msm_smd_tty.c
diff options
context:
space:
mode:
authorAlexandre Courbot <gnurou@gmail.com>2011-02-09 03:18:46 +0000
committerPaul Mundt <lethal@linux-sh.org>2011-03-31 14:33:22 +0900
commitb2267a6b095afb84b5766d6646e581b9054704d9 (patch)
tree1acfe545a09b8ba9fb0c01a30ed465d1be3a9b7f /drivers/tty/serial/msm_smd_tty.c
parentff7690b48ae8571d930a2621e21f6e5a41e42b6d (diff)
downloadblackbird-op-linux-b2267a6b095afb84b5766d6646e581b9054704d9.tar.gz
blackbird-op-linux-b2267a6b095afb84b5766d6646e581b9054704d9.zip
serial: sh-sci: prevent setup of uninitialized serial console
Commit 906b17dc089f7fa87e37a9cfe6ee185efc90e0da introduced a condition where the kernel will crash unless a earlyprintk parameter is specified. Without this parameter, sci_console_init is called during early console setup without any port being initialized, and the kernel crashes a little bit later when uart_set_options attemps to invoke set_termios on a port with an ops member equal to NULL. This patch just checks in sci_console_init that the port is properly initialized, and aborts the early console setup if it is not. Signed-off-by: Alexandre Courbot <gnurou@gmail.com> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'drivers/tty/serial/msm_smd_tty.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud