Re: [PATCH] usb: dwc3: Check that the request is valid in dwc3_gadget_giveback()

2020-02-16 Thread Vignesh Raghavendra
On 15/02/20 12:03 am, Marek Vasut wrote: > On 2/14/20 1:23 PM, Vignesh Raghavendra wrote: >> From: Jean-Jacques Hiblot >> >> This fixes potential issues reported by klokworks: >> Pointer 'req' returned from call to function 'next_request' at line 531 and >> 538 may be NULL and will be dereferen

Re: [PATCH] usb: dwc3: Check that the request is valid in dwc3_gadget_giveback()

2020-02-14 Thread Marek Vasut
On 2/14/20 1:23 PM, Vignesh Raghavendra wrote: > From: Jean-Jacques Hiblot > > This fixes potential issues reported by klokworks: > Pointer 'req' returned from call to function 'next_request' at line 531 and > 538 may be NULL and will be dereferenced in dwc3_gadget_giveback() Shouldn't you rathe

[PATCH] usb: dwc3: Check that the request is valid in dwc3_gadget_giveback()

2020-02-14 Thread Vignesh Raghavendra
From: Jean-Jacques Hiblot This fixes potential issues reported by klokworks: Pointer 'req' returned from call to function 'next_request' at line 531 and 538 may be NULL and will be dereferenced in dwc3_gadget_giveback() Signed-off-by: Jean-Jacques Hiblot Signed-off-by: Vignesh Raghavendra ---