Am Donnerstag, 22. Januar 2004 17:17 schrieb Alan Stern:
> +int usb_get_device_descriptor(struct usb_device *dev, unsigned int size)
>  {
> -       int ret = usb_get_descriptor(dev, USB_DT_DEVICE, 0, &dev->descriptor,
> -                                    sizeof(dev->descriptor));
> +       struct usb_device_descriptor *desc;
> +       int ret;
> +
> +       if (size > sizeof(*desc))
> +               return -EINVAL;
> +       desc = kmalloc(sizeof(*desc), GFP_KERNEL);

Alan,

are you sure this is not used in the usb_reset_device() path?
In that case we'd need to use GFP_NOIO.

        Regards
                Oliver




-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to