serial: 8250: Prevent concurrent updates to shadow registers
authorPeter Hurley <peter@hurleysoftware.com>
Thu, 22 Jan 2015 17:24:31 +0000 (12:24 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 2 Feb 2015 18:11:27 +0000 (10:11 -0800)
commite9cef8625e997a5ade9cddd2d501257dfee7cb62
treeb76b44f9d048028855a3233e02c1d03515b87676
parent4516d50aabedbe5ae334155193e4d35c02390d9a
serial: 8250: Prevent concurrent updates to shadow registers

The port shadow registers, ->fcr and ->mcr, must be protected from
concurrent updates. Relocate the shadow register updates in
serial8250_do_set_termios() to the port lock critical section.

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