aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sound/soc/soc-dapm.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sound/soc/soc-dapm.c b/sound/soc/soc-dapm.c
index 5c2a34956a5d..d0162a4cb7fd 100644
--- a/sound/soc/soc-dapm.c
+++ b/sound/soc/soc-dapm.c
@@ -1239,6 +1239,9 @@ int snd_soc_dapm_stream_event(struct snd_soc_codec *codec,
1239{ 1239{
1240 struct snd_soc_dapm_widget *w; 1240 struct snd_soc_dapm_widget *w;
1241 1241
1242 if (stream == NULL)
1243 return 0;
1244
1242 mutex_lock(&codec->mutex); 1245 mutex_lock(&codec->mutex);
1243 list_for_each_entry(w, &codec->dapm_widgets, list) 1246 list_for_each_entry(w, &codec->dapm_widgets, list)
1244 { 1247 {