projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e64d2e3
)
[ALSA] Fix gus_pcm dereference before NULL
author
Eugene Teo
<eugene.teo@eugeneteo.net>
Fri, 17 Mar 2006 15:32:52 +0000
(16:32 +0100)
committer
Jaroslav Kysela
<perex@suse.cz>
Wed, 22 Mar 2006 09:39:25 +0000
(10:39 +0100)
Modules: GUS Library
The NULL check of substream is simply superfluous. It is
guaranteed to receive non-NULL substream. Thanks Takashi.
Coverity bug #861
Signed-off-by: Eugene Teo <eugene.teo@eugeneteo.net>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/isa/gus/gus_pcm.c
patch
|
blob
|
blame
|
history
diff --git
a/sound/isa/gus/gus_pcm.c
b/sound/isa/gus/gus_pcm.c
index d0829393ec8a21b6ad0a3d8589ab5b417724086f..c7f95e7aa018513be58cc557a6a984369085bf6e 100644
(file)
--- a/
sound/isa/gus/gus_pcm.c
+++ b/
sound/isa/gus/gus_pcm.c
@@
-114,8
+114,6
@@
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);