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