OSDN Git Service

tty: serial: uartlite: Use dynamic array for console port
authorShubhrajyoti Datta <shubhrajyoti.datta@xilinx.com>
Mon, 6 Aug 2018 08:52:14 +0000 (14:22 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 18 Sep 2018 14:07:24 +0000 (16:07 +0200)
commitdeeb33e8fdd834770f75996c18153453d5af6c50
treee531bc46d8fa4f2cb66e3b8a0b5c96dcfd5b3faa
parent5f6825d1cef747f6677a833708d698c7df3c1bc8
tty: serial: uartlite: Use dynamic array for console port

Driver console functions are using pointer to static array with fixed
size. There can be only one serial console at the time which is found
by register_console(). register_console() is filling cons->index to
port->line value.

Signed-off-by: Shubhrajyoti Datta <shubhrajyoti.datta@xilinx.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/uartlite.c