projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cb666e5
)
[ALSA] soc - 0.13 ASoC DAPM bug fix for unnamed streams
author
Seth Forshee
<
[email protected]
>
Fri, 2 Feb 2007 16:14:19 +0000
(17:14 +0100)
committer
Jaroslav Kysela
<
[email protected]
>
Fri, 9 Feb 2007 08:03:37 +0000
(09:03 +0100)
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 <
[email protected]
>
Signed-off-by: Liam Girdwood <
[email protected]
>
Signed-off-by: Takashi Iwai <
[email protected]
>
Signed-off-by: Jaroslav Kysela <
[email protected]
>
sound/soc/soc-dapm.c
patch
|
blob
|
history
diff --git
a/sound/soc/soc-dapm.c
b/sound/soc/soc-dapm.c
index 5c2a34956a5da283cb14dfaf349318a99824162b..d0162a4cb7fd2df95c8c163fd54ecbb84dfd8185 100644
(file)
--- 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,
{
struct snd_soc_dapm_widget *w;
+ if (stream == NULL)
+ return 0;
+
mutex_lock(&codec->mutex);
list_for_each_entry(w, &codec->dapm_widgets, list)
{