Bug 66189 - USB Generic Serial driver hangs on call to 'close'.
Summary: USB Generic Serial driver hangs on call to 'close'.
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: kernel
Version: 7.3
Hardware: i686
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Pete Zaitcev
QA Contact: Brian Brock
URL:
Whiteboard:
Depends On:
Blocks:
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:
Clone Of:
Environment:
Last Closed: 2003-12-17 01:06:20 UTC
Embargoed:


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:
Always

Steps to Reproduce:
1. Enable USB Serial Converter support and the USB Generic Serial Driver in the
kernel.
2. Load the usbserial driver with vendor and product ids for a "generic" USB
device.
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
execution.

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.