On 4/16/2018 2:16 PM, Grigor Tovmasyan wrote:
> In dwc2_gadget_init() we allocate EP0 request via
> dwc2_hsotg_ep_alloc_request(). After that there are
> usb_add_gadget_udc() call and if it failed, then
> ctrl_req will not be freed and will cause memory leak.
>
> Reordered function calls in
Am 23.04.2018 um 09:05 schrieb Grigor Tovmasyan:
Hi Stefan,
On 4/18/2018 1:11 AM, Stefan Wahren wrote:
Hi Grigor,
Grigor Tovmasyan hat am 16. April 2018 um 12:16
geschrieben:
In dwc2_gadget_init() we allocate EP0 request via
dwc2_hsotg_ep_alloc_request().
Hi Stefan,
On 4/18/2018 1:11 AM, Stefan Wahren wrote:
> Hi Grigor,
>
>> Grigor Tovmasyan hat am 16. April 2018 um
>> 12:16 geschrieben:
>>
>>
>> In dwc2_gadget_init() we allocate EP0 request via
>> dwc2_hsotg_ep_alloc_request(). After that there are
>>
Hi Grigor,
> Grigor Tovmasyan hat am 16. April 2018 um
> 12:16 geschrieben:
>
>
> In dwc2_gadget_init() we allocate EP0 request via
> dwc2_hsotg_ep_alloc_request(). After that there are
> usb_add_gadget_udc() call and if it failed, then
> ctrl_req will not be