From d85368a145b127f488c5d95f98c2049615d50a26 Mon Sep 17 00:00:00 2001 From: Seth Forshee Date: Fri, 2 Feb 2007 17:14:19 +0100 Subject: [PATCH] --- yaml --- r: 47211 b: refs/heads/master c: 11da21a79048472a14b201120c0c50b10060220b h: refs/heads/master i: 47209: 0bdd3b9bc0ff9b94a35da7f513a7d4a746f0a4f4 47207: 75e759bfb0235fd10df891ffc02cf6b4b1efa8f2 v: v3 --- [refs] | 2 +- trunk/sound/soc/soc-dapm.c | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/[refs] b/[refs] index 008e0d408831..d755e9214e8b 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: cb666e5bd865cc991c0048d6e81581019a141820 +refs/heads/master: 11da21a79048472a14b201120c0c50b10060220b diff --git a/trunk/sound/soc/soc-dapm.c b/trunk/sound/soc/soc-dapm.c index 5c2a34956a5d..d0162a4cb7fd 100644 --- a/trunk/sound/soc/soc-dapm.c +++ b/trunk/sound/soc/soc-dapm.c @@ -1239,6 +1239,9 @@ int snd_soc_dapm_stream_event(struct snd_soc_codec *codec, { struct snd_soc_dapm_widget *w; + if (stream == NULL) + return 0; + mutex_lock(&codec->mutex); list_for_each_entry(w, &codec->dapm_widgets, list) {