git://git.onelab.eu
/
linux-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
linux 2.6.16.38 w/ vs2.0.3-rc1
[linux-2.6.git]
/
sound
/
isa
/
gus
/
gus_pcm.c
diff --git
a/sound/isa/gus/gus_pcm.c
b/sound/isa/gus/gus_pcm.c
index
c7f95e7
..
d082939
100644
(file)
--- a/
sound/isa/gus/gus_pcm.c
+++ b/
sound/isa/gus/gus_pcm.c
@@
-114,6
+114,8
@@
static void snd_gf1_pcm_trigger_up(struct snd_pcm_substream *substream)
unsigned char pan;
unsigned int voice;
+ if (substream == NULL)
+ return;
spin_lock_irqsave(&pcmp->lock, flags);
if (pcmp->flags & SNDRV_GF1_PCM_PFLG_ACTIVE) {
spin_unlock_irqrestore(&pcmp->lock, flags);