Skip to content

Commit

Permalink
ASoC: au1x: dbdma2: plug memleak in pcm device creation error path
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Manuel Lauss authored and Mark Brown committed Dec 3, 2009
1 parent 1bc8079 commit efd9eb9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions sound/soc/au1x/dbdma2.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit efd9eb9

Please sign in to comment.