pty: Use spin_lock_irq() for pty_set_termios()
authorPeter Hurley <[email protected]>
Thu, 16 Oct 2014 19:33:24 +0000 (15:33 -0400)
committerGreg Kroah-Hartman <[email protected]>
Thu, 6 Nov 2014 00:34:36 +0000 (16:34 -0800)
commit4d8c1dff6a8666a2e18a7d5954c2156be0d5b152
tree67b087c8fb4142ad6d95b9a9e8d085ad8ace6ee6
parentdbfcd851a9ee0bf6952e538be75230b7c071dafb
pty: Use spin_lock_irq() for pty_set_termios()

The tty driver's set_termios() method is called with interrupts
enabled; there is no need to save and restore the local interrupt state.

Signed-off-by: Peter Hurley <[email protected]>
Reviewed-by: Alan Cox <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
drivers/tty/pty.c