Re: [PATCH] usb: dwc3: gadget: Fix list_del corruption in dwc3_ep_dequeue

2018-04-09 Thread Jack Pham
Hi Felipe, Just wondering if you had a chance to look at this. This fixes a potential double-delete error which was caught when CONFIG_DEBUG_LIST=y && CONFIG_BUG_ON_DATA_CORRUPTION==y. On Fri, Mar 23, 2018 at 10:05:33AM -0700, Jack Pham wrote: > From: Mayank Rana > >

Re: [PATCH] usb: dwc3: gadget: Fix list_del corruption in dwc3_ep_dequeue

2018-03-23 Thread Jack Pham
Hi Felipe, On Fri, Mar 23, 2018 at 10:05:33AM -0700, Jack Pham wrote: > dwc3_ep_dequeue() waits for completion of End Transfer command > using wait_event_lock_irq(), which will release the dwc3->lock > while waiting and reacquire after completion. This allows a > potential race condition with

[PATCH] usb: dwc3: gadget: Fix list_del corruption in dwc3_ep_dequeue

2018-03-23 Thread Jack Pham
From: Mayank Rana dwc3_ep_dequeue() waits for completion of End Transfer command using wait_event_lock_irq(), which will release the dwc3->lock while waiting and reacquire after completion. This allows a potential race condition with ep_disable() which also removes all