serial: core: Expand port mutex section in uart_poll_init()
authorPeter Hurley <peter@hurleysoftware.com>
Sun, 10 Apr 2016 01:56:32 +0000 (18:56 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 30 Apr 2016 16:26:55 +0000 (09:26 -0700)
commit49c02304fe97f88ee65f92368fe3f473201a7976
treedaf7c48631b43083a4007b7b82f53f47010bfe99
parent5c0517fefc92d636e409141ed75c29c3f1969107
serial: core: Expand port mutex section in uart_poll_init()

Prepare uart_poll_init() to safely dereference uart port; expand the
port mutex section to guarantee uart port remains valid until
uart_poll_init() completes.

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