Hi,

Any suggestions for better corrections would be appreciated from
linux-usb-devel, but please remember to CC me back on replies.

Description: Bug 387 (http://bugzilla.kernel.org/show_bug.cgi?id=387)
is fixed by the attached patch, which sends waitqueue wake-ups to all
the appropriate wait-queue entries when a device is removed from
the system.

Signed-off-by: Nishanth Aravamudan <[EMAIL PROTECTED]>

--- 2.6.10-rc3-v/drivers/usb/core/inode.c       2004-12-08 13:38:55.000000000 
-0800
+++ 2.6.10-rc3/drivers/usb/core/inode.c 2004-12-08 11:57:52.000000000 -0800
@@ -715,6 +715,7 @@ void usbfs_remove_device(struct usb_devi
        }
        while (!list_empty(&dev->filelist)) {
                ds = list_entry(dev->filelist.next, struct dev_state, list);
+               wake_up_all(&ds->wait);
                list_del_init(&ds->list);
                if (ds->discsignr) {
                        sinfo.si_signo = SIGPIPE;


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to