]> git.baikalelectronics.ru Git - kernel.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)
commite52f3e91298f9471a179c88e361687e83bc6c84b
tree768c0bc31d6cab24ff46f0d667882cfd4e0213cb
parentbf8fe189c7d82e08b1db5e44f91de7dab1193b2c
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