serial: core: Use proper spinlock flavor in uart_close()
authorPeter Hurley <peter@hurleysoftware.com>
Fri, 31 Jul 2015 20:59:51 +0000 (16:59 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 5 Aug 2015 05:07:22 +0000 (22:07 -0700)
commit6fb98fb3031359af42a6ee6984b477cbcfdca7bd
tree66929be0c0f0466f5caf9d9bbdb9e70869b8744f
parent2a0e5ef6cfa24351791fbd4339f562211b83afae
serial: core: Use proper spinlock flavor in uart_close()

uart_close() runs in non-atomic context only; use
spin_lock/unlock_irq instead of saving the interrupt state (which
== on).

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