Bill Pemberton 27b351c554 USB: quatech2: only write to the tty if the port is open.
The commit 2e124b4a390ca85325fae75764bef92f0547fa25 removed the checks
that prevented qt2_process_read_urb() from trying to put chars into
ttys that weren't actually opened.  This resulted in 'tty is NULL'
warnings from flush_to_ldisc() when the device was used.

The devices use just one read urb for all ports.  As a result
qt2_process_read_urb() may be called with the current port set to a
port number that has not been opened.  Add a check if the port is open
before calling tty_flip_buffer_push().

Signed-off-by: Bill Pemberton <wfp5p@virginia.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2013-03-13 12:32:47 -07:00
..
2013-01-15 22:30:15 -08:00
2013-01-15 22:30:15 -08:00
2013-01-15 22:30:15 -08:00
2012-11-21 13:27:16 -08:00
2012-10-25 09:36:57 -07:00
2012-10-01 13:23:01 -07:00
2013-01-15 22:30:15 -08:00
2013-01-15 22:30:15 -08:00
2013-01-15 22:30:15 -08:00
2013-02-21 13:41:04 -08:00
2013-01-15 22:30:15 -08:00
2013-01-15 22:30:15 -08:00
2013-01-15 22:30:15 -08:00
2013-02-21 13:41:04 -08:00
2013-01-15 22:30:15 -08:00
2013-01-15 22:30:15 -08:00
2013-02-21 13:41:04 -08:00
2013-01-15 22:30:15 -08:00
2013-02-21 13:41:04 -08:00
2013-01-15 22:30:15 -08:00
2013-01-15 22:30:15 -08:00
2013-02-21 13:41:04 -08:00
2013-01-15 22:30:15 -08:00
2013-01-15 22:30:15 -08:00
2013-01-15 22:30:15 -08:00
2013-01-15 22:30:15 -08:00
2013-01-15 22:30:15 -08:00
2013-01-15 22:30:15 -08:00
2013-01-15 22:30:15 -08:00
2013-01-15 22:30:15 -08:00
2011-11-15 10:06:15 -08:00
2013-03-11 11:09:17 -07:00
2013-01-15 22:30:15 -08:00
2013-02-21 13:41:04 -08:00
2013-01-15 22:30:15 -08:00
2013-02-21 13:41:04 -08:00
2013-02-21 13:41:04 -08:00
2012-09-13 10:15:14 -07:00