n_tty: Only process packet mode data in raw mode
authorPeter Hurley <peter@hurleysoftware.com>
Thu, 16 Oct 2014 19:33:30 +0000 (15:33 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 6 Nov 2014 00:34:36 +0000 (16:34 -0800)
commit95ea90db019561450826ac32d8341f5735c78eee
treee8c772efb5ab292530d367324dcd0dd37d5d1a61
parent1aa1bf1115272d22fc4c758ee8769b73d8079a79
n_tty: Only process packet mode data in raw mode

Packet mode can only be set for a pty master, and a pty master is
always in raw mode since its termios cannot be changed.

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