diff options
author | Liam Girdwood <lrg@ti.com> | 2011-07-24 15:59:37 -0400 |
---|---|---|
committer | Paolo Pisati <paolo.pisati@canonical.com> | 2012-08-17 04:18:22 -0400 |
commit | afa6b66af6ede55931d12c9a78007ca4122fa428 (patch) | |
tree | fa0d5f78d92ad87844efebe6770f9c08438307c8 | |
parent | 0b8cdbdf9c2c888582ebf009ac48c63c743afbb4 (diff) |
Subject: [PATCH 054/104] ASoC: dapm - fix list iterator in dapm_seq_run_coalesced.
The list iterator w points to 'pending' list head at the end of
list_for_each_entry and not a valid widget.
Signed-off-by: Liam Girdwood <lrg@ti.com>
-rw-r--r-- | sound/soc/soc-dapm.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sound/soc/soc-dapm.c b/sound/soc/soc-dapm.c index 13f4bdea936..3325a6c7a08 100644 --- a/sound/soc/soc-dapm.c +++ b/sound/soc/soc-dapm.c | |||
@@ -938,6 +938,8 @@ static void dapm_seq_run_coalesced(struct snd_soc_dapm_context *dapm, | |||
938 | "pop test : Applying 0x%x/0x%x to %x in %dms\n", | 938 | "pop test : Applying 0x%x/0x%x to %x in %dms\n", |
939 | value, mask, reg, card->pop_time); | 939 | value, mask, reg, card->pop_time); |
940 | pop_wait(card->pop_time); | 940 | pop_wait(card->pop_time); |
941 | w = list_first_entry(pending, struct snd_soc_dapm_widget, | ||
942 | power_list); | ||
941 | soc_widget_update_bits(w, reg, mask, value); | 943 | soc_widget_update_bits(w, reg, mask, value); |
942 | } | 944 | } |
943 | 945 | ||