mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-10 04:48:04 +09:00
fix adb open endpoint not empty bug
This commit is contained in:
@@ -563,11 +563,11 @@ static int dwc_otg_pcd_ep_queue(struct usb_ep *_ep,
|
||||
/* 20091226,HSL@RK */
|
||||
if ( !list_empty(&req->queue) )
|
||||
{
|
||||
DWC_PRINT("%s::ep %s req not empty,done it error!\n" , __func__, _ep->name);
|
||||
return -EINVAL;
|
||||
while(!list_empty(&req->queue) ) {
|
||||
ep = container_of(_ep, dwc_otg_pcd_ep_t, ep);
|
||||
request_done(ep, req, -ECONNABORTED);
|
||||
DWC_PRINT("%s::ep %s req not empty,done it error!\n" , __func__, _ep->name);
|
||||
return -EINVAL;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user