mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-01 14:44:12 +00:00
ASoC: pxa: fix a memory leak in probe()
[ Upstream commitaa6464edbd
] Free the "priv" pointer before returning the error code. Fixes:90eb6b59d3
("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> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
7e29dadf26
commit
05e06fb6a6
1 changed files with 1 additions and 1 deletions
|
@ -797,7 +797,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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue