Skip to content

Commit

Permalink
ASoC: free socdev if init_card() fails in wm9705_soc_probe()
Browse files Browse the repository at this point in the history
Free socdev if snd_soc_init_card() fails.

Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
  • Loading branch information
Roel Kluin authored and Mark Brown committed Aug 23, 2009
1 parent 79fb938 commit 821ebc8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sound/soc/codecs/wm9705.c
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,7 @@ static int wm9705_soc_probe(struct platform_device *pdev)
ret = snd_soc_init_card(socdev);
if (ret < 0) {
printk(KERN_ERR "wm9705: failed to register card\n");
goto pcm_err;
goto reset_err;
}

return 0;
Expand Down

0 comments on commit 821ebc8

Please sign in to comment.