Skip to content

Commit

Permalink
ASoC: pxa: pxa-ssp: small leak in probe()
Browse files Browse the repository at this point in the history
There is a small memory leak if probe() fails.

Fixes: 2023c90 ('ASoC: pxa: pxa-ssp: add DT bindings')
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
  • Loading branch information
Dan Carpenter authored and Mark Brown committed Jul 31, 2014
1 parent 4091d34 commit 4548728
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sound/soc/pxa/pxa-ssp.c
Original file line number Diff line number Diff line change
Expand Up @@ -723,7 +723,8 @@ static int pxa_ssp_probe(struct snd_soc_dai *dai)
ssp_handle = of_parse_phandle(dev->of_node, "port", 0);
if (!ssp_handle) {
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");
Expand Down

0 comments on commit 4548728

Please sign in to comment.