diff options
author | Mark Brown <broonie@linaro.org> | 2013-08-12 19:20:36 -0400 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2013-08-13 05:19:59 -0400 |
commit | 69c2d346e8fa8dbed122e82f727332f35718ab86 (patch) | |
tree | ecd4982ca6a035a86e72c1fdcd6601bb1e87e93c /sound/soc/soc-dapm.c | |
parent | 946d92a100f6c36b1c53922d5105b3c19a59173d (diff) |
ASoC: dapm: Ensure kcontrol list is initialised
Ensure that the recently added path kcontrol list is initialised otherwise
we may crash trying to delete routes that don't have kcontrols.
Signed-off-by: Mark Brown <broonie@linaro.org>
Acked-by: Lars-Peter Clausen <lars@metafoo.de>
Diffstat (limited to 'sound/soc/soc-dapm.c')
-rw-r--r-- | sound/soc/soc-dapm.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sound/soc/soc-dapm.c b/sound/soc/soc-dapm.c index b885a9bedc4e..d84bd0f167b6 100644 --- a/sound/soc/soc-dapm.c +++ b/sound/soc/soc-dapm.c | |||
@@ -2354,6 +2354,7 @@ static int snd_soc_dapm_add_path(struct snd_soc_dapm_context *dapm, | |||
2354 | path->sink = wsink; | 2354 | path->sink = wsink; |
2355 | path->connected = connected; | 2355 | path->connected = connected; |
2356 | INIT_LIST_HEAD(&path->list); | 2356 | INIT_LIST_HEAD(&path->list); |
2357 | INIT_LIST_HEAD(&path->list_kcontrol); | ||
2357 | INIT_LIST_HEAD(&path->list_source); | 2358 | INIT_LIST_HEAD(&path->list_source); |
2358 | INIT_LIST_HEAD(&path->list_sink); | 2359 | INIT_LIST_HEAD(&path->list_sink); |
2359 | 2360 | ||