summaryrefslogtreecommitdiff
path: root/lib/mpi/mpi-sub-ui.c
diff options
context:
space:
mode:
authorZhang Qilong <zhangqilong3@huawei.com>2021-07-27 15:31:42 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2021-07-27 15:54:01 +0200
commitfa4a8dcfd51b911f101ebc461dfe22230b74dd64 (patch)
tree5ef42056cf1e816231e889f247f810b086c0e23e /lib/mpi/mpi-sub-ui.c
parent30fad76ce4e98263edfa8f885c81d5426c1bf169 (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 <balbi@kernel.org> Signed-off-by: Zhang Qilong <zhangqilong3@huawei.com> Link: https://lore.kernel.org/r/20210727073142.84666-1-zhangqilong3@huawei.com Cc: stable <stable@vger.kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'lib/mpi/mpi-sub-ui.c')
0 files changed, 0 insertions, 0 deletions