Skip to content

Commit d6f443a

Browse files
AxelLinbroonie
authored andcommitted
ASoC: nuc900-ac97: fix a memory leak
Signed-off-by: Axel Lin <[email protected]> Acked-by: Liam Girdwood <[email protected]> Acked-by: Wan ZongShun <[email protected]> Signed-off-by: Mark Brown <[email protected]>
1 parent 59e2102 commit d6f443a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sound/soc/nuc900/nuc900-ac97.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -384,14 +384,14 @@ static int __devinit nuc900_ac97_drvprobe(struct platform_device *pdev)
384384

385385
static int __devexit nuc900_ac97_drvremove(struct platform_device *pdev)
386386
{
387-
388387
snd_soc_unregister_dai(&pdev->dev);
389388

390389
clk_put(nuc900_ac97_data->clk);
391390
iounmap(nuc900_ac97_data->mmio);
392391
release_mem_region(nuc900_ac97_data->res->start,
393392
resource_size(nuc900_ac97_data->res));
394393

394+
kfree(nuc900_ac97_data);
395395
nuc900_ac97_data = NULL;
396396

397397
return 0;

0 commit comments

Comments
 (0)