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-03-12 08:54:41 -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-10-31 12:48:06 -07:00
2013-01-15 22:30:15 -08:00
2013-02-02 13:31:52 +01:00
2013-02-21 13:41:04 -08:00
2012-03-14 15:43:05 -07:00
2012-09-14 12:31:27 -07:00
2013-01-15 22:30:15 -08:00
2013-01-15 22:30:15 -08:00
2012-10-31 12:48:06 -07:00
2013-01-15 22:30:15 -08:00
2012-10-17 13:47:58 -07:00
2013-02-21 13:41:04 -08:00
2012-10-31 12:48:06 -07:00
2012-10-31 12:48:06 -07: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
2012-10-25 09:37:13 -07:00
2013-01-15 22:30:15 -08:00
2013-01-15 22:30:15 -08:00
2013-01-25 09:56:54 -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
2012-05-08 15:46:14 -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-03-07 12:29:09 +08:00
2013-01-15 22:30:15 -08:00
2013-01-15 22:30:15 -08:00
2013-03-11 11:09:17 -07:00
2013-03-13 08:50:42 -07:00
2013-03-13 12:32:47 -07:00
2013-01-15 22:30:15 -08:00
2012-10-31 12:48:06 -07: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
2012-05-11 15:14:07 -07:00
2012-05-08 15:46:14 -07:00
2013-02-21 13:41:04 -08:00
2013-02-13 09:20:06 -08:00
2012-10-25 09:37:13 -07:00
2012-09-18 10:16:28 +01:00
2012-10-31 12:48:06 -07:00
2012-10-25 09:36:57 -07:00
2013-01-25 09:56:54 -08:00
2012-05-08 15:46:14 -07:00
2012-09-13 10:15:14 -07:00