Skip to contentSkip to conversation

ASoC: dapm: Ensure kcontrol list is initialised

PATCH In review Mark Brown 2 participants 2 messages Aug 12, 2013 – Aug 13, 2013

Subsystems (2)
lore
Share & tools
lore

Mark Brown

author maintainer
#0 lore raw

PATCH 1/1 ASoC: dapm: Ensure kcontrol list is initialised

From: Mark Brown <[email protected]>

Ensure that the recently added path kcontrol list is initialised otherwise we may crash trying to delete routes that don't have kcontrols.

---
 sound/soc/soc-dapm.c | 1 +
 1 file changed, 1 insertion(+)
sound/soc/soc-dapm.c +1 -0
index b78eaa1..1e0e4ce 100644
@@ -2357,6 +2357,7 @@ static int snd_soc_dapm_add_path(struct snd_soc_dapm_context *dapm,
 	path->sink = wsink;
 	path->connected = connected;
 	INIT_LIST_HEAD(&path->list);
+	INIT_LIST_HEAD(&path->list_kcontrol);
 	INIT_LIST_HEAD(&path->list_source);
 	INIT_LIST_HEAD(&path->list_sink);
 
Signature · 1 line
1.8.4.rc1