From: Roel Kluin Date: Sat, 22 Aug 2009 19:24:24 +0000 (+0200) Subject: ASoC: free socdev if init_card() fails in wm9705_soc_probe() X-Git-Tag: v2.6.32-rc1~166^2~36 X-Git-Url: http://git.cascardo.info/?a=commitdiff_plain;h=821ebc86efd4b42aa120076562b0fd4f03ec3c0c;p=cascardo%2Flinux.git ASoC: free socdev if init_card() fails in wm9705_soc_probe() Free socdev if snd_soc_init_card() fails. Signed-off-by: Roel Kluin Signed-off-by: Mark Brown --- diff --git a/sound/soc/codecs/wm9705.c b/sound/soc/codecs/wm9705.c index fa88b463e71f..e7d2840d9e59 100644 --- a/sound/soc/codecs/wm9705.c +++ b/sound/soc/codecs/wm9705.c @@ -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;