Alan Stern
320348c8d5
usb-serial: straighten out serial_open
...
This patch (as1291) removes a bunch of code from serial_open(), things
that were rendered unnecessary by earlier patches. A missing spinlock
is added to protect port->port.count, which needs to be incremented
even if the open fails but not if the tty has gotten a hangup. The
test for whether the hardware has been initialized, based on the use
count, is replaced by a more transparent test of the
ASYNCB_INITIALIZED bit in the port flags.
Signed-off-by: Alan Stern <stern@rowland.harvard.edu >
Cc: stable <stable@kernel.org >
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de >
2009-09-19 13:13:42 -07:00
..
2009-06-15 21:44:47 -07:00
2009-09-19 13:13:33 -07:00
2009-09-19 13:13:26 -07:00
2008-07-22 13:03:22 -07:00
2009-06-15 21:44:47 -07:00
2009-09-19 13:13:26 -07:00
2009-03-30 15:21:59 +02:00
2009-09-19 13:13:26 -07:00
2009-09-19 13:13:26 -07:00
2009-09-19 13:13:26 -07:00
2009-09-19 13:13:33 -07:00
2008-07-22 13:03:23 -07:00
2009-09-19 13:13:26 -07:00
2009-09-19 13:13:33 -07:00
2008-10-17 14:41:10 -07:00
2009-09-19 13:13:26 -07:00
2009-08-07 16:05:13 -07:00
2008-07-22 13:03:23 -07:00
2009-09-19 13:13:26 -07:00
2009-09-19 13:13:26 -07:00
2008-10-17 14:41:09 -07:00
2009-09-19 13:13:26 -07:00
2007-04-27 13:28:36 -07:00
2009-06-15 21:44:47 -07:00
2009-09-19 13:13:26 -07:00
2007-07-12 16:29:48 -07:00
2009-09-19 13:13:26 -07:00
2009-09-19 13:13:26 -07:00
2009-09-19 13:13:26 -07:00
2009-09-19 13:13:33 -07:00
2008-02-01 14:34:47 -08:00
2009-03-30 15:22:01 +02:00
2009-09-19 13:13:26 -07:00
2007-07-12 16:29:45 -07:00
2009-09-19 13:13:26 -07:00
2009-09-19 13:13:26 -07:00
2009-09-19 13:13:26 -07:00
2009-09-19 13:13:33 -07:00
2009-03-24 16:20:44 -07:00
2009-09-19 13:13:37 -07:00
2008-02-01 14:34:56 -08:00
2009-09-19 13:13:26 -07:00
2009-09-19 13:13:26 -07:00
2009-04-17 10:50:26 -07:00
2009-09-19 13:13:26 -07:00
2009-09-19 13:13:26 -07:00
2009-09-19 13:13:26 -07:00
2009-09-19 13:13:26 -07:00
2009-09-19 13:13:33 -07:00
2007-07-12 16:29:47 -07:00
2009-09-19 13:13:26 -07:00
2009-08-07 16:05:12 -07:00
2009-04-17 10:50:24 -07:00
2008-10-17 14:41:10 -07:00
2009-01-07 10:00:13 -08:00
2009-09-19 13:13:26 -07:00
2009-09-19 13:13:33 -07:00
2009-09-19 13:13:26 -07:00
2009-09-19 13:13:26 -07:00
2009-02-09 11:19:48 -08:00
2009-09-19 13:13:26 -07:00
2009-09-19 13:13:42 -07:00
2009-09-19 13:13:26 -07:00
2007-08-22 14:27:43 -07:00
2009-09-19 13:13:33 -07:00
2008-07-22 13:03:22 -07:00