On Tue, 8 Feb 2005, Andi Kleen wrote:

> On Tue, Feb 08, 2005 at 02:25:14PM -0500, Alan Stern wrote:
> > On Tue, 8 Feb 2005, Matthew Dharm wrote:
> > 
> > > Of course, that still doesn't change the fact that we've got a bug that 
> > > can
> > > be hit by other types of probing errors that will cause an OOPS.
> > 
> > If you're talking about the driver-model-related bug that Andi originally
> > reported, it has already been fixed.
> 
> At least 2.6.11rc3 is still buggy.

Like Greg said, the fix didn't get into Linus's tree until after 
2.6.11-rc3 was released.  Besides, if you want to test it you can try out
the patch for yourself (see below).  All it does is move one line of code.

Alan Stern


--- a/drivers/usb/core/hcd.c    Thu Jan 13 15:04:02 2005
+++ b/drivers/usb/core/hcd.c    Fri Jan 14 23:18:16 2005
@@ -669,6 +669,7 @@
        INIT_LIST_HEAD (&bus->bus_list);
 
        class_device_initialize(&bus->class_dev);
+       bus->class_dev.class = &usb_host_class;
 }
 EXPORT_SYMBOL (usb_bus_init);
 
@@ -725,7 +726,6 @@
        }
 
        snprintf(bus->class_dev.class_id, BUS_ID_SIZE, "usb%d", busnum);
-       bus->class_dev.class = &usb_host_class;
        bus->class_dev.dev = bus->controller;
        retval = class_device_add(&bus->class_dev);
        if (retval) {



-------------------------------------------------------
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://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
[email protected]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to