From: Felipe Balbi <balbi@kernel.org>
To: Zhang Qilong <zhangqilong3@huawei.com>
Cc: gregkh@linuxfoundation.org, linux-usb@vger.kernel.org
Subject: Re: [PATCH -next v2] usb: gadget: remove leaked entry from udc driver list
Date: Tue, 27 Jul 2021 11:13:06 +0300 [thread overview]
Message-ID: <87v94wtbsd.fsf@kernel.org> (raw)
In-Reply-To: <20210727073142.84666-1-zhangqilong3@huawei.com>
Hi,
Zhang Qilong <zhangqilong3@huawei.com> writes:
> 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")
> Signed-off-by: Zhang Qilong <zhangqilong3@huawei.com>
Thank you,
Acked-by: Felipe Balbi <balbi@kernel.org>
--
balbi
next prev parent reply other threads:[~2021-07-27 8:13 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-07-27 7:31 [PATCH -next v2] usb: gadget: remove leaked entry from udc driver list Zhang Qilong
2021-07-27 8:13 ` Felipe Balbi [this message]
2021-07-27 13:53 ` Greg KH
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87v94wtbsd.fsf@kernel.org \
--to=balbi@kernel.org \
--cc=gregkh@linuxfoundation.org \
--cc=linux-usb@vger.kernel.org \
--cc=zhangqilong3@huawei.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.