Thread (2 messages) flat view 2 messages, 2 authors, 2021-06-29

Re: [PATCH] usb: dwc3: avoid NULL access of usb_gadget_driver

From: Alan Stern <stern@rowland.harvard.edu>
Date: 2021-06-29 01:36:20
Also in: lkml

On Tue, Jun 29, 2021 at 08:20:28AM +0800, Linyu Yuan wrote:
we found crash in dwc3_disconnect_gadget(),
it is because dwc->gadget_driver become NULL before async access.
7dc0c55e9f30 ('USB: UDC core: Add udc_async_callbacks gadget op')
suggest a common way to avoid such kind of issue.

this change implment the callback in dwc3 and
change related functions which have callback to UDC core.

Signed-off-by: Linyu Yuan <redacted>
---
In general this looks very good, all nice and simple.  But it doesn't 
cover the reset callback (dwc3_reset_gadget).

Alan Stern
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help