Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 11da21a7 authored by Seth Forshee's avatar Seth Forshee Committed by Jaroslav Kysela
Browse files

[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: default avatarSeth Forshee <seth.forshee@gmail.com>
Signed-off-by: default avatarLiam Girdwood <lg@opensource.wolfsonmicro.com>
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
Signed-off-by: default avatarJaroslav Kysela <perex@suse.cz>
parent cb666e5b
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -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)
	{