tty: Use spin_lock_irq() for ctrl_lock when interrupts enabled
authorPeter Hurley <peter@hurleysoftware.com>
Thu, 16 Oct 2014 19:33:25 +0000 (15:33 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 6 Nov 2014 00:34:36 +0000 (16:34 -0800)
commit6054c16e80318d32ee084a0f5620a863ae8cea33
treead3c3d6cbcc440714a529d772ca6be940b6acbbc
parent4d8c1dff6a8666a2e18a7d5954c2156be0d5b152
tty: Use spin_lock_irq() for ctrl_lock when interrupts enabled

Interrupts are enabled in the n_tty_read() loop, ioctl(TIOCPKT)
and pty driver flush_buffer() routine; no need to save and restore
local interrupt state.

Signed-off-by: Peter Hurley <peter@hurleysoftware.com>
Reviewed-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/n_tty.c
drivers/tty/pty.c