]> git.karo-electronics.de Git - linux-beck.git/commit
serial: core: Prevent unsafe uart port access, part 3
authorPeter Hurley <peter@hurleysoftware.com>
Sun, 10 Apr 2016 01:56:35 +0000 (18:56 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 30 Apr 2016 16:26:55 +0000 (09:26 -0700)
commitaf224ca2df297440448b9d407d21b50982c6d532
tree768c0bc31d6cab24ff46f0d667882cfd4e0213cb
parent9ed19428a51d53477e2b79be3303fa08f8575749
serial: core: Prevent unsafe uart port access, part 3

For tty operations which may expect uart port to have been removed
but still have other necessary work to accomplish, check for NULL
uart port; specifically uart_close(), uart_hangup() and sub-functions
(uart_shutdown() and uart_port_shutdown()).

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