]> git.baikalelectronics.ru Git - kernel.git/commit
serial: uartps: Fix error path when alloc failed
authorMichal Simek <michal.simek@xilinx.com>
Tue, 18 Dec 2018 12:18:41 +0000 (13:18 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 19 Dec 2018 07:23:20 +0000 (08:23 +0100)
commit8fafb567f38142695c3f3e573d12d10c06e88419
tree6b0d2ecb9dd9458c50ceab83b4501a6656bf7625
parentc8ab927576cbdfabfed1dc3596f7a16b93b2caed
serial: uartps: Fix error path when alloc failed

When cdns_uart_console allocation failed there is a need to also clear
ID from ID list.

Fixes: 5257e56d0b1b ("serial: uartps: Change uart ID port allocation")
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/xilinx_uartps.c