aboutsummaryrefslogtreecommitdiff
path: root/sound/soc/soc-dapm.c
diff options
context:
space:
mode:
authorLars-Peter Clausen <lars@metafoo.de>2013-05-23 00:12:53 +0200
committerMark Brown <broonie@opensource.wolfsonmicro.com>2013-05-22 17:32:58 -0500
commitcf1f7c6e8756646db7a0d883013cedd90eb90dd4 (patch)
treeada7d466baba3242275210a9bea3439e594f3cc1 /sound/soc/soc-dapm.c
parent7d0cd22382f80243e7fce16f6bfc0720d5688370 (diff)
ASoC: Fix early event callback list iteration
The power_list field is used when adding a widget to a power sequence list. Use the same field when iterating the list using list_for_each_entry, otherwise we'll see undefined behavior. Signed-off-by: Lars-Peter Clausen <lars@metafoo.de> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'sound/soc/soc-dapm.c')
-rw-r--r--sound/soc/soc-dapm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/soc/soc-dapm.c b/sound/soc/soc-dapm.c
index 071579be7cb..35073462d94 100644
--- a/sound/soc/soc-dapm.c
+++ b/sound/soc/soc-dapm.c
@@ -1738,11 +1738,11 @@ static int dapm_power_widgets(struct snd_soc_dapm_context *dapm, int event)
&async_domain);
async_synchronize_full_domain(&async_domain);
- list_for_each_entry(w, &down_list, list) {
+ list_for_each_entry(w, &down_list, power_list) {
dapm_seq_check_event(dapm, w, SND_SOC_DAPM_WILL_PMD);
}
- list_for_each_entry(w, &up_list, list) {
+ list_for_each_entry(w, &up_list, power_list) {
dapm_seq_check_event(dapm, w, SND_SOC_DAPM_WILL_PMU);
}