提交 45487289 编写于 作者: D Dan Carpenter 提交者: Mark Brown

ASoC: pxa: pxa-ssp: small leak in probe()

There is a small memory leak if probe() fails.

Fixes: 2023c90c ('ASoC: pxa: pxa-ssp: add DT bindings')
Signed-off-by: NDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: NMark Brown <broonie@linaro.org>
上级 4091d342
...@@ -723,7 +723,8 @@ static int pxa_ssp_probe(struct snd_soc_dai *dai) ...@@ -723,7 +723,8 @@ static int pxa_ssp_probe(struct snd_soc_dai *dai)
ssp_handle = of_parse_phandle(dev->of_node, "port", 0); ssp_handle = of_parse_phandle(dev->of_node, "port", 0);
if (!ssp_handle) { if (!ssp_handle) {
dev_err(dev, "unable to get 'port' phandle\n"); dev_err(dev, "unable to get 'port' phandle\n");
return -ENODEV; ret = -ENODEV;
goto err_priv;
} }
priv->ssp = pxa_ssp_request_of(ssp_handle, "SoC audio"); priv->ssp = pxa_ssp_request_of(ssp_handle, "SoC audio");
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册