projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
af5fd12
)
ASoC: pxa: fix a memory leak in probe()
author
Dan Carpenter
<dan.carpenter@linaro.org>
Thu, 5 Oct 2023 14:00:24 +0000
(17:00 +0300)
committer
Mark Brown
<broonie@kernel.org>
Mon, 9 Oct 2023 12:13:50 +0000
(13:13 +0100)
Free the "priv" pointer before returning the error code.
Fixes: 90eb6b59d311 ("ASoC: pxa-ssp: add support for an external clock in devicetree")
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Link:
https://lore.kernel.org/r/84ac2313-1420-471a-b2cb-3269a2e12a7c@moroto.mountain
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/pxa/pxa-ssp.c
patch
|
blob
|
history
diff --git
a/sound/soc/pxa/pxa-ssp.c
b/sound/soc/pxa/pxa-ssp.c
index b70034c07eeea517b2a4dc2bff6f3bf708497ac5..b8a3cb8b75978e8fa15d1270f12240f884ab24ca 100644
(file)
--- a/
sound/soc/pxa/pxa-ssp.c
+++ b/
sound/soc/pxa/pxa-ssp.c
@@
-773,7
+773,7
@@
static int pxa_ssp_probe(struct snd_soc_dai *dai)
if (IS_ERR(priv->extclk)) {
ret = PTR_ERR(priv->extclk);
if (ret == -EPROBE_DEFER)
-
return ret
;
+
goto err_priv
;
priv->extclk = NULL;
}