diff options
author | Alan Cox <alan@lxorguk.ukuu.org.uk> | 2009-07-28 00:34:58 +0100 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-07-27 17:26:23 -0700 |
commit | c56d300086140c93dc3390e5300fd17df802ec0e (patch) | |
tree | cc80d5acf9abe433573efe5d610b0f19df04f5d8 /fs/sysfs | |
parent | fc013a58859b7cf85e53a05804a74952fe0a4117 (diff) | |
download | op-kernel-dev-c56d300086140c93dc3390e5300fd17df802ec0e.zip op-kernel-dev-c56d300086140c93dc3390e5300fd17df802ec0e.tar.gz |
usb_serial: Fix remaining ref count/lock bugs
This fixes
- locking bug that was hidden by ecc2e05e739c30870c8e4f252b63a0c4041f2724
- Regression #13821
- Spurious warning when closing and blocking for data write out
With these changes my PL2303 always ends up as ttyUSB0 when it should and
the module refcounts stay correct.
I'll do a more wholesale split & tidy of _open in the next release or two
as we get a standard tty_port_open and port->ops->init port->ops->shutdown
call backs.
Copy sent to Alan Stern and Carlos Mafra just to confirm it fixes all the
reports but it passes local testing with the same hardware as Alan Stern.
Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/sysfs')
0 files changed, 0 insertions, 0 deletions