Skip to contentSkip to conversation

ASoC: free socdev if init_card() fails in wm9705_soc_probe()

PATCH Applied Roel Kluin 2 participants 2 messages Aug 22, 2009 – Aug 23, 2009

Subsystems (3)
lore
Share & tools
lore

Roel Kluin

author
#0 lore raw

PATCH 1/1 ASoC: free socdev if init_card() fails in wm9705_soc_probe()

Free socdev if snd_soc_init_card() fails.

---
It doesn't seem to happen in snd_soc_init_card(), but please review.

sound/soc/codecs/wm9705.c +1 -1
index fa88b46..e7d2840 100644
@@ -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;