Thread (3 messages) read the whole thread 3 messages, 3 authors, 2021-07-27

Re: [PATCH -next v2] usb: gadget: remove leaked entry from udc driver list

From: Greg KH <gregkh@linuxfoundation.org>
Date: 2021-07-27 13:53:44

On Tue, Jul 27, 2021 at 03:31:42PM +0800, Zhang Qilong wrote:
The usb_add_gadget_udc will add a new gadget to the udc class
driver list. Not calling usb_del_gadget_udc in error branch
will result in residual gadget entry in the udc driver list.
We fix it by calling usb_del_gadget_udc to clean it when error
return.

Fixes:48ba02b2e2b1a ("usb: gadget: add udc driver for max3420")
Note, in the future, this should look like:

Fixes: 48ba02b2e2b1 ("usb: gadget: add udc driver for max3420")

thanks,

greg k-h
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help