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)
commitd70a7b1626d64c8c57fb9258a81f427198b60700
tree1f5bee23483bbc50d1d49ee3fd13dc23168f1b3b
parent6a597a38cbaf067019db96645f36e0b1f01f306a
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
This page took 0.039061 seconds and 5 git commands to generate.