On Thu, Jan 16, 2003 at 08:10:26PM +0000, oliver stieber wrote:
> Patch taking account of log2 intervals for iso and interrupt urbs.
> 
> 
> --- linux-2.5.54/drivers/usb/core/devio.c     2003-01-02 03:22:02.000000000 +0000
> +++ /usr/src/linux/drivers/usb/core/devio.c   2003-01-16 20:04:52.000000000 +0000
> @@ -854,13 +854,21 @@
>                       return -EINVAL;
>               }
>               uurb.buffer_length = totlen;
> -             break;
> -
> +             if(!(ep_desc = usb_epnum_to_ep_desc(ps->dev, uurb.endpoint)))
> +                     return -ENOENT;
> +             interval = 1 << (ep_desc->bInterval-1);
>       case USBDEVFS_URB_TYPE_INTERRUPT:

Do you really want to fall through here?

greg k-h


-------------------------------------------------------
This SF.NET email is sponsored by: Thawte.com
Understand how to protect your customers personal information by implementing
SSL on your Apache Web Server. Click here to get our FREE Thawte Apache 
Guide: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0029en
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to