diff options
author | 2014-07-31 15:57:51 +0300 | |
---|---|---|
committer | 2014-07-31 20:27:03 +0100 | |
commit | 4548728981de259d7d37d0ae968a777b09794168 (patch) | |
tree | fe0cb89c2880c1f369f565e8c951eca915c94c79 /sound | |
parent | ASoC: pxa2xx-ac97: prepare and unprepare the clocks (diff) | |
download | linux-4548728981de259d7d37d0ae968a777b09794168.tar.gz linux-4548728981de259d7d37d0ae968a777b09794168.tar.bz2 linux-4548728981de259d7d37d0ae968a777b09794168.zip |
ASoC: pxa: pxa-ssp: small leak in probe()
There is a small memory leak if probe() fails.
Fixes: 2023c90c3a2c ('ASoC: pxa: pxa-ssp: add DT bindings')
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'sound')
-rw-r--r-- | sound/soc/pxa/pxa-ssp.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sound/soc/pxa/pxa-ssp.c b/sound/soc/pxa/pxa-ssp.c index 199a8b377553..0109f6c2334e 100644 --- a/sound/soc/pxa/pxa-ssp.c +++ b/sound/soc/pxa/pxa-ssp.c @@ -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"); |