]> git.baikalelectronics.ru Git - kernel.git/commit
serial: 8250: Unlink uart console ptr if console setup fails
authorPeter Hurley <peter@hurleysoftware.com>
Sun, 10 Jan 2016 22:39:34 +0000 (14:39 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 28 Jan 2016 22:07:04 +0000 (14:07 -0800)
commitb19f486174630d3075dee9fb908ba578265c45e7
tree1f5bee23483bbc50d1d49ee3fd13dc23168f1b3b
parent906a30115e557b438475eb25d012d573b3d9f97d
serial: 8250: Unlink uart console ptr if console setup fails

If console setup fails (eg., there is no valid port at that index),
unlink the console ptr; otherwise, when the driver unloads, the
console will be unregistered (even though setup, and thus registration,
failed) and a console disabled message will be printed.

Signed-off-by: Peter Hurley <peter@hurleysoftware.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/8250/8250_core.c