diff options
author | Zhang Qilong <[email protected]> | 2021-07-27 15:31:42 +0800 |
---|---|---|
committer | Greg Kroah-Hartman <[email protected]> | 2021-07-27 15:54:01 +0200 |
commit | fa4a8dcfd51b911f101ebc461dfe22230b74dd64 (patch) | |
tree | 5ef42056cf1e816231e889f247f810b086c0e23e /drivers/fpga/fpga-mgr.c | |
parent | 30fad76ce4e98263edfa8f885c81d5426c1bf169 (diff) |
usb: gadget: remove leaked entry from udc driver list
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: 48ba02b2e2b1 ("usb: gadget: add udc driver for max3420")
Acked-by: Felipe Balbi <[email protected]>
Signed-off-by: Zhang Qilong <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Cc: stable <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'drivers/fpga/fpga-mgr.c')
0 files changed, 0 insertions, 0 deletions