projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
946d92a
)
ASoC: dapm: Ensure kcontrol list is initialised
author
Mark Brown
<broonie@linaro.org>
Mon, 12 Aug 2013 23:20:36 +0000
(
00:20
+0100)
committer
Mark Brown
<broonie@linaro.org>
Tue, 13 Aug 2013 09:19:59 +0000
(10:19 +0100)
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>
sound/soc/soc-dapm.c
patch
|
blob
|
history
diff --git
a/sound/soc/soc-dapm.c
b/sound/soc/soc-dapm.c
index b885a9bedc4eac34eea1734edac4802246105e3a..d84bd0f167b684e69bd93ef9c3205e93eca39d99 100644
(file)
--- 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,
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);