Skip to content

Commit

Permalink
ASoC: davinci-vcif - fix a memory leak
Browse files Browse the repository at this point in the history
Signed-off-by: Axel Lin <[email protected]>
Acked-by: Liam Girdwood <[email protected]>
Signed-off-by: Mark Brown <[email protected]>
  • Loading branch information
AxelLin authored and broonie committed Nov 25, 2010
1 parent 09de953 commit 8b6b30a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions sound/soc/davinci/davinci-vcif.c
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,10 @@ static int davinci_vcif_probe(struct platform_device *pdev)

static int davinci_vcif_remove(struct platform_device *pdev)
{
struct davinci_vcif_dev *davinci_vcif_dev = dev_get_drvdata(&pdev->dev);

snd_soc_unregister_dai(&pdev->dev);
kfree(davinci_vcif_dev);

return 0;
}
Expand Down

0 comments on commit 8b6b30a

Please sign in to comment.