]> asedeno.scripts.mit.edu Git - linux.git/commit
serial: uartps: Use dynamic array for console port
authorMichal Simek <michal.simek@xilinx.com>
Mon, 23 Apr 2018 09:51:01 +0000 (11:51 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 25 Apr 2018 12:58:45 +0000 (14:58 +0200)
commit0413fe045dda45781cb33788c2d57eafdf8295f7
treefad042b997e033d4aaddaf9da606766e84e829c2
parent0f38c5e3e0ade98b49e2c7ca5550ee9e36cbc04f
serial: uartps: 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: Michal Simek <michal.simek@xilinx.com>
Reviewed-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/xilinx_uartps.c