Bug 66189 - USB Generic Serial driver hangs on call to 'close'.
Summary: USB Generic Serial driver hangs on call to 'close'.
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: kernel   
(Show other bugs)
Version: 7.3
Hardware: i686 Linux
Target Milestone: ---
Assignee: Pete Zaitcev
QA Contact: Brian Brock
Depends On:
TreeView+ depends on / blocked
Reported: 2002-06-05 23:26 UTC by Need Real Name
Modified: 2007-04-18 16:42 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2003-12-17 01:06:20 UTC
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

Description Need Real Name 2002-06-05 23:26:02 UTC
From Bugzilla Helper:
User-Agent: Mozilla/4.78 [en] (X11; U; Linux 2.4.18 i686)

Description of problem:
Before calling 'generic_close', the function 'serial_close' does a call  to
'down'. Within 'generic_close' another call to 'down' is done which causes the
driver to hang.

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1. Enable USB Serial Converter support and the USB Generic Serial Driver in the
2. Load the usbserial driver with vendor and product ids for a "generic" USB
3. Attach the "generic" USB device to the system.
4. Write a program that does an open and close  of "/dev/ttyUSB0".

Actual Results:  Program will not return from call to 'close'.

Expected Results:  Program will return from call to 'close' and finish

Additional info:

Comment 1 Greg Kroah-Hartman 2002-06-06 22:03:06 UTC
oops, I caused this bug with my previous patch for the visor oops.

If the calls to down(&port->sem) and up(&port->sem) are removed from
drivers/usb/usbserial.c::generic_close() this problem should be fixed.

Let me know if anyone needs me to make a patch for this problem.

Again, very sorry about this.

Comment 2 Pete Zaitcev 2002-06-10 17:37:01 UTC
See also Bug 61820.

Comment 3 Pete Zaitcev 2002-06-11 19:36:30 UTC
I fixed it in HEAD 2.4.18-5.47 (Raw Hide), but not in Hampton (7.3).
The temporary 2.4 fix is in current -ac.

Note You need to log in before you can comment on or make changes to this bug.