diff options
author | Manuel Lauss <manuel.lauss@googlemail.com> | 2009-12-01 18:10:35 +0100 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2009-12-03 10:49:55 +0000 |
commit | efd9eb96d5604c2c133e500f7b8c7b3f3fbdece8 (patch) | |
tree | 611282018fc1722eefe0681240a099974ce6792f /sound/soc/au1x | |
parent | 1bc8079879e8edfff451b62b7550bdd18523f963 (diff) | |
download | kernel_samsung_smdk4412-efd9eb96d5604c2c133e500f7b8c7b3f3fbdece8.zip kernel_samsung_smdk4412-efd9eb96d5604c2c133e500f7b8c7b3f3fbdece8.tar.gz kernel_samsung_smdk4412-efd9eb96d5604c2c133e500f7b8c7b3f3fbdece8.tar.bz2 |
ASoC: au1x: dbdma2: plug memleak in pcm device creation error path
free the allocated pcm platform device in the error path.
Signed-off-by: Manuel Lauss <manuel.lauss@gmail.com>
Acked-by: Liam Girdwood <lrg@slimlogic.co.uk>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'sound/soc/au1x')
-rw-r--r-- | sound/soc/au1x/dbdma2.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sound/soc/au1x/dbdma2.c b/sound/soc/au1x/dbdma2.c index 2ca33b0..19e4d37 100644 --- a/sound/soc/au1x/dbdma2.c +++ b/sound/soc/au1x/dbdma2.c @@ -480,6 +480,7 @@ struct platform_device *au1xpsc_pcm_add(struct platform_device *pdev) if (!ret) return pd; + platform_device_put(pd); out: kfree(res); return NULL; |