summaryrefslogtreecommitdiff
path: root/sound/pci
diff options
context:
space:
mode:
authorDave Jones <davej@redhat.com>2006-03-06 15:27:39 +0300
committerJaroslav Kysela <perex@suse.cz>2006-03-22 12:35:23 +0300
commitc27e8c591854ef349fdf5bec777355dae04bb48f (patch)
tree6f5903766b7aebb3221b0b7838502ea0140c332d /sound/pci
parenta2df813beab42740fa8043b3fdc9e1d15784b9ec (diff)
downloadlinux-c27e8c591854ef349fdf5bec777355dae04bb48f.tar.xz
[ALSA] emu10k1_synth use after free
Modules: EMU10K1/EMU10K2 driver Thou shalt not dereference freed memory. Coverity bug #958 Signed-off-by: Dave Jones <davej@redhat.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci')
-rw-r--r--sound/pci/emu10k1/emu10k1_synth.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/sound/pci/emu10k1/emu10k1_synth.c b/sound/pci/emu10k1/emu10k1_synth.c
index 1fa393f22a99..204995a1dfbd 100644
--- a/sound/pci/emu10k1/emu10k1_synth.c
+++ b/sound/pci/emu10k1/emu10k1_synth.c
@@ -62,7 +62,6 @@ static int snd_emu10k1_synth_new_device(struct snd_seq_device *dev)
if (snd_emux_register(emu, dev->card, arg->index, "Emu10k1") < 0) {
snd_emux_free(emu);
- emu->hw = NULL;
return -ENOMEM;
}