Am Donnerstag, 12. August 2004 20:39 schrieb Dale Farnsworth:
> diff -Nru a/drivers/usb/core/message.c b/drivers/usb/core/message.c
> --- a/drivers/usb/core/message.c        2004-08-12 11:21:18 -07:00
> +++ b/drivers/usb/core/message.c        2004-08-12 11:21:18 -07:00
> @@ -797,9 +797,19 @@
>   */
>  int usb_get_status(struct usb_device *dev, int type, int target, void *data)
>  {
> -       return usb_control_msg(dev, usb_rcvctrlpipe(dev, 0),
> -               USB_REQ_GET_STATUS, USB_DIR_IN | type, 0, target, data, 2,
> -               HZ * USB_CTRL_GET_TIMEOUT);
> +       int ret;
> +       u16 *status = kmalloc(sizeof(*status), GFP_KERNEL);
> +

Have you checked whether this can be used by usb-storage?
In that case you would need to use GFP_NOIO.

        Regards
                Oliver


-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to