Skip to content

Commit

Permalink
[ALSA] soc - 0.13 ASoC DAPM bug fix for unnamed streams
Browse files Browse the repository at this point in the history
This patch fixes a bug whereby an unnamed stream would cause a NULL
pointer ref in snd_soc_dapm_stream_event().

Signed-off-by: Seth Forshee <seth.forshee@gmail.com>
Signed-off-by: Liam Girdwood <lg@opensource.wolfsonmicro.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
  • Loading branch information
Seth Forshee authored and Jaroslav Kysela committed Feb 9, 2007
1 parent cb666e5 commit 11da21a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions sound/soc/soc-dapm.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit 11da21a

Please sign in to comment.