[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <aB3T_HTC27F98NJ0@stanley.mountain>
Date: Fri, 9 May 2025 13:07:56 +0300
From: Dan Carpenter <dan.carpenter@...aro.org>
To: Christophe JAILLET <christophe.jaillet@...adoo.fr>
Cc: Srinivas Kandagatla <srini@...nel.org>,
Liam Girdwood <lgirdwood@...il.com>,
Mark Brown <broonie@...nel.org>, Jaroslav Kysela <perex@...ex.cz>,
Takashi Iwai <tiwai@...e.com>,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
Wesley Cheng <quic_wcheng@...cinc.com>,
linux-kernel@...r.kernel.org, kernel-janitors@...r.kernel.org,
linux-sound@...r.kernel.org, linux-arm-msm@...r.kernel.org
Subject: Re: [PATCH] ASoC: qcom: qdsp6: Add an error handling path in
q6usb_component_probe()
On Fri, May 09, 2025 at 11:09:55AM +0200, Christophe JAILLET wrote:
> sound/soc/qcom/qdsp6/q6usb.c | 12 ++++++++++--
> 1 file changed, 10 insertions(+), 2 deletions(-)
>
> diff --git a/sound/soc/qcom/qdsp6/q6usb.c b/sound/soc/qcom/qdsp6/q6usb.c
> index adba0446f301..8044cb7e4dd8 100644
> --- a/sound/soc/qcom/qdsp6/q6usb.c
> +++ b/sound/soc/qcom/qdsp6/q6usb.c
> @@ -327,8 +327,10 @@ static int q6usb_component_probe(struct snd_soc_component *component)
> return ret;
>
> usb = snd_soc_usb_allocate_port(component, &data->priv);
> - if (IS_ERR(usb))
> - return -ENOMEM;
> + if (IS_ERR(usb)) {
> + ret = -ENOMEM;
ret = PTR_ERR(usb)?
> + goto free_aux_devices;
> + }
regards,
dan carpenter
Powered by blists - more mailing lists