serial: core: Claim port mutex for set_ldisc()
authorPeter Hurley <peter@hurleysoftware.com>
Wed, 5 Nov 2014 18:11:42 +0000 (13:11 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 6 Nov 2014 22:57:27 +0000 (14:57 -0800)
commitdb1b9dfcd622604b268234e01c539927093abce7
treee9a4520f2af1b528ea865bf36f0fa2c93d7bfa6d
parent9191aaaa82d3149767125d58b2d260a3749d9f5e
serial: core: Claim port mutex for set_ldisc()

Three UART drivers (8250, atmel & amba-pl010) enable modem status
interrupts if the line discipline is changed to N_PPS. However,
the uart port flags may only be safely modified while holding the
port mutex.

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