[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20230608165423.gvcwvmgiojuvjahv@halaney-x13s>
Date: Thu, 8 Jun 2023 11:54:23 -0500
From: Andrew Halaney <ahalaney@...hat.com>
To: Christophe JAILLET <christophe.jaillet@...adoo.fr>
Cc: Andy Gross <agross@...nel.org>,
Bjorn Andersson <andersson@...nel.org>,
Konrad Dybcio <konrad.dybcio@...aro.org>,
Thinh Nguyen <Thinh.Nguyen@...opsys.com>,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
Shawn Guo <shawn.guo@...aro.org>, linux-kernel@...r.kernel.org,
kernel-janitors@...r.kernel.org, linux-arm-msm@...r.kernel.org,
linux-usb@...r.kernel.org
Subject: Re: [PATCH] usb: dwc3: qcom: Fix an error handling path in
dwc3_qcom_probe()
On Sun, Jun 04, 2023 at 04:56:34PM +0200, Christophe JAILLET wrote:
> If dwc3_qcom_create_urs_usb_platdev() fails, some resources still need to
> be released, as already done in the other error handling path of the
> probe.
>
> Fixes: c25c210f590e ("usb: dwc3: qcom: add URS Host support for sdm845 ACPI boot")
> Signed-off-by: Christophe JAILLET <christophe.jaillet@...adoo.fr>
Reviewed-by: Andrew Halaney <ahalaney@...hat.com>
> ---
> drivers/usb/dwc3/dwc3-qcom.c | 5 +++--
> 1 file changed, 3 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/usb/dwc3/dwc3-qcom.c b/drivers/usb/dwc3/dwc3-qcom.c
> index 822735814050..aa96c473f839 100644
> --- a/drivers/usb/dwc3/dwc3-qcom.c
> +++ b/drivers/usb/dwc3/dwc3-qcom.c
> @@ -856,9 +856,10 @@ static int dwc3_qcom_probe(struct platform_device *pdev)
> if (IS_ERR_OR_NULL(qcom->urs_usb)) {
> dev_err(dev, "failed to create URS USB platdev\n");
> if (!qcom->urs_usb)
> - return -ENODEV;
> + ret = -ENODEV;
> else
> - return PTR_ERR(qcom->urs_usb);
> + ret = PTR_ERR(qcom->urs_usb);
> + goto clk_disable;
> }
> }
> }
> --
> 2.34.1
>
Powered by blists - more mailing lists