提交 11da21a7 编写于 作者: S Seth Forshee 提交者: Jaroslav Kysela

[ALSA] soc - 0.13 ASoC DAPM bug fix for unnamed streams

This patch fixes a bug whereby an unnamed stream would cause a NULL
pointer ref in snd_soc_dapm_stream_event().
Signed-off-by: NSeth Forshee <seth.forshee@gmail.com>
Signed-off-by: NLiam Girdwood <lg@opensource.wolfsonmicro.com>
Signed-off-by: NTakashi Iwai <tiwai@suse.de>
Signed-off-by: NJaroslav Kysela <perex@suse.cz>
上级 cb666e5b
......@@ -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)
{
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册