[alsa-devel] [PATCH] ASoC: free socdev if init_card() fails in wm9705_soc_probe()
22 Aug
2009
22 Aug
'09
9:24 p.m.
Free socdev if snd_soc_init_card() fails.
Signed-off-by: Roel Kluin roel.kluin@gmail.com --- It doesn't seem to happen in snd_soc_init_card(), but please review.
diff --git a/sound/soc/codecs/wm9705.c b/sound/soc/codecs/wm9705.c index fa88b46..e7d2840 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;
23 Aug
23 Aug
11:03 a.m.
New subject: [alsa-devel] [PATCH] ASoC: free socdev if init_card() fails in wm9705_soc_probe()
On Sat, Aug 22, 2009 at 09:24:24PM +0200, Roel Kluin wrote:
Free socdev if snd_soc_init_card() fails.
Signed-off-by: Roel Kluin roel.kluin@gmail.com
Applied, thanks.
5600
Age (days ago)
5601
Last active (days ago)
1 comments
2 participants
participants (2)
-
Mark Brown
-
Roel Kluin