serial: mctrl_gpio: add IRQ locking
authorYegor Yefremov <yegorslists@googlemail.com>
Fri, 29 Apr 2016 08:45:07 +0000 (10:45 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 1 May 2016 20:22:54 +0000 (13:22 -0700)
commitd11df61853f1d45035b7f5a6702c9b48d5f09a49
tree72b6f4a87234792455eb699265b9908d946c6f9e
parentfa01e2ca9f531b4a5693469a196eb1574b8d7d8a
serial: mctrl_gpio: add IRQ locking

uart_handle_cts_change should be called with port->lock held. And for
this to be save you must also disable irqs.

Acked-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/serial_mctrl_gpio.c