tty: core: Use correct spinlock flavor in tiocspgrp()
authorPeter Hurley <peter@hurleysoftware.com>
Sun, 11 Oct 2015 00:28:43 +0000 (20:28 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 18 Oct 2015 04:30:49 +0000 (21:30 -0700)
commit1e86b5bf15e2be662df303b7067ac08247713401
tree8577fee20d9cf63a6275737a73b0c03efa026c37
parent2812d9e9fd94c54b0482215f579e6aa04452a322
tty: core: Use correct spinlock flavor in tiocspgrp()

tiocspgrp() is the ioctl handler for TIOCSPGRP, which runs in
non-atomic context; use spin_lock/unlock_irq (since interrupt state
is on).

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