[U-Boot] [PATCH] USB-CDC: wrong ep status used
Vitaly Kuzmichev
vkuzmichev at mvista.com
Thu Aug 12 12:13:32 CEST 2010
Hi Stefano,
On 08/12/2010 01:41 AM, Stefano Babic wrote:
> #if defined(DEV_CONFIG_CDC)
> if (dev->status_ep) {
> - dev->stat_req = usb_ep_alloc_request(gadget->ep0, GFP_KERNEL);
> - dev->stat_req->buf = status_req;
> + dev->stat_req = usb_ep_alloc_request(dev->status_ep, GFP_KERNEL);
> if (!dev->stat_req) {
> dev->stat_req->buf=NULL;
We get oops here!
> - usb_ep_free_request (gadget->ep0, dev->req);
> + usb_ep_free_request (dev->status_ep, dev->req);
>
> goto fail;
> }
> + dev->stat_req->buf = status_req;
> dev->stat_req->context = NULL;
> }
> #endif
More information about the U-Boot
mailing list