aboutsummaryrefslogtreecommitdiffstats
path: root/sound/pci/emu10k1
diff options
context:
space:
mode:
authorDave Jones <davej@redhat.com>2006-03-06 07:27:39 -0500
committerJaroslav Kysela <perex@suse.cz>2006-03-22 04:35:23 -0500
commitc27e8c591854ef349fdf5bec777355dae04bb48f (patch)
tree6f5903766b7aebb3221b0b7838502ea0140c332d /sound/pci/emu10k1
parenta2df813beab42740fa8043b3fdc9e1d15784b9ec (diff)
[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/emu10k1')
-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)
62 62
63 if (snd_emux_register(emu, dev->card, arg->index, "Emu10k1") < 0) { 63 if (snd_emux_register(emu, dev->card, arg->index, "Emu10k1") < 0) {
64 snd_emux_free(emu); 64 snd_emux_free(emu);
65 emu->hw = NULL;
66 return -ENOMEM; 65 return -ENOMEM;
67 } 66 }
68 67