From: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
To: phucduc.bui@gmail.com
Cc: Peter Chen <peter.chen@kernel.org>, Frank Li <Frank.Li@nxp.com>,
Sascha Hauer <s.hauer@pengutronix.de>,
Pengutronix Kernel Team <kernel@pengutronix.de>,
linux-usb@vger.kernel.org, Fabio Estevam <festevam@gmail.com>,
imx@lists.linux.dev, linux-kernel@vger.kernel.org,
linux-arm-kernel@lists.infradead.org,
Sashiko Bot <sashiko-bot@kernel.org>
Subject: Re: [PATCH v3 2/2] usb: chipidea: ci_hdrc_imx: Fix error handling when creating IRQ name
Date: Thu, 10 Sep 2026 15:38:08 +0200 [thread overview]
Message-ID: <2026091054-preflight-capacity-e7e2@gregkh> (raw)
In-Reply-To: <20260810093112.47807-2-phucduc.bui@gmail.com>
On Mon, Aug 10, 2026 at 04:31:12PM +0700, phucduc.bui@gmail.com wrote:
> From: bui duc phuc <phucduc.bui@gmail.com>
>
> devm_kasprintf() can fail when allocating the wakeup IRQ name. The error
> was logged with dev_err_probe(), but its return value was ignored and
> probe could continue with a successful return value.
>
> Store the error returned by dev_err_probe() in ret and jump to the error
> path to propagate the failure.
>
> Reviewed-by: Frank Li <Frank.Li@nxp.com>
> Acked-by: Peter Chen <peter.chen@kernel.org>
> Reported-by: Sashiko Bot <sashiko-bot@kernel.org>
> Link: https://lore.kernel.org/all/20260806065755.C9F361F000E9@smtp.kernel.org/
> Signed-off-by: bui duc phuc <phucduc.bui@gmail.com>
> ---
>
> Link v2:
> https://lore.kernel.org/all/20260807065619.30604-2-phucduc.bui@gmail.com/
> Changes in v3:
> - Use the phy_shutdown label instead of err_clk as suggested by
> Sashiko's review.
> - Add Peter Chen's Acked-by tag.
> - Add Frank Li's Reviewed-by tag.
>
> drivers/usb/chipidea/ci_hdrc_imx.c | 6 +++---
> 1 file changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/drivers/usb/chipidea/ci_hdrc_imx.c b/drivers/usb/chipidea/ci_hdrc_imx.c
> index 9e529398c607..edbf9df9b8f2 100644
> --- a/drivers/usb/chipidea/ci_hdrc_imx.c
> +++ b/drivers/usb/chipidea/ci_hdrc_imx.c
> @@ -532,8 +532,8 @@ static int ci_hdrc_imx_probe(struct platform_device *pdev)
> if (data->wakeup_irq > 0) {
> irq_name = devm_kasprintf(dev, GFP_KERNEL, "%s:wakeup", pdata.name);
> if (!irq_name) {
> - dev_err_probe(dev, -ENOMEM, "failed to create irq_name\n");
> - goto err_clk;
> + ret = dev_err_probe(dev, -ENOMEM, "failed to create irq_name\n");
> + goto phy_shutdown;
> }
>
> ret = devm_request_threaded_irq(dev, data->wakeup_irq,
> @@ -541,7 +541,7 @@ static int ci_hdrc_imx_probe(struct platform_device *pdev)
> IRQF_ONESHOT | IRQF_NO_AUTOEN,
> irq_name, data);
> if (ret)
> - goto err_clk;
> + goto phy_shutdown;
> }
>
> ret = imx_usbmisc_init(data->usbmisc_data);
> --
> 2.43.0
>
This patch did not apply, please rebase and resend.
thanks,
greg k-h
next prev parent reply other threads:[~2026-09-10 13:38 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-08-10 9:31 [PATCH v3 1/2] usb: chipidea: ci_hdrc_imx: Propagate errors from optional IRQ lookup phucduc.bui
2026-08-10 9:31 ` [PATCH v3 2/2] usb: chipidea: ci_hdrc_imx: Fix error handling when creating IRQ name phucduc.bui
2026-09-10 13:38 ` Greg Kroah-Hartman [this message]
2026-09-11 5:14 ` Bui Duc Phuc
2026-08-10 19:04 ` [PATCH v3 1/2] usb: chipidea: ci_hdrc_imx: Propagate errors from optional IRQ lookup Frank Li
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=2026091054-preflight-capacity-e7e2@gregkh \
--to=gregkh@linuxfoundation.org \
--cc=Frank.Li@nxp.com \
--cc=festevam@gmail.com \
--cc=imx@lists.linux.dev \
--cc=kernel@pengutronix.de \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-usb@vger.kernel.org \
--cc=peter.chen@kernel.org \
--cc=phucduc.bui@gmail.com \
--cc=s.hauer@pengutronix.de \
--cc=sashiko-bot@kernel.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®