Le dimanche 21 Mars 2004 16:07, vous avez �crit :
>
> Try the patch below and tell us if it prevents the oops.
>
> Alan Stern
>
>
> --- 2.6/drivers/usb/core/devio.c.orig Sun Mar 21 10:02:43 2004
> +++ 2.6/drivers/usb/core/devio.c      Sun Mar 21 10:04:47 2004
> @@ -414,6 +414,8 @@
>
>       if (ep & ~(USB_DIR_IN|0xf))
>               return -EINVAL;
> +     if (!dev->actconfig)
> +             return -ENOENT;
>       for (i = 0; i < dev->actconfig->desc.bNumInterfaces; i++) {
>               iface = dev->actconfig->interface[i];
>               for (j = 0; j < iface->num_altsetting; j++) {
> @@ -434,6 +436,8 @@
>
>       if (ifn & ~0xff)
>               return -EINVAL;
> +     if (!dev->actconfig)
> +             return -ENOENT;
>       for (i = 0; i < dev->actconfig->desc.bNumInterfaces; i++) {
>               if (dev->actconfig->interface[i]->
>                               altsetting[0].desc.bInterfaceNumber == ifn)


It seems that works.
Thanks.


-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id70&alloc_id638&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