summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Jones <davej@redhat.com>2006-03-06 13:27:39 +0100
committerJaroslav Kysela <perex@suse.cz>2006-03-22 10:35:23 +0100
commitc27e8c591854ef349fdf5bec777355dae04bb48f (patch)
tree6f5903766b7aebb3221b0b7838502ea0140c332d
parenta2df813beab42740fa8043b3fdc9e1d15784b9ec (diff)
downloadop-kernel-dev-c27e8c591854ef349fdf5bec777355dae04bb48f.zip
op-kernel-dev-c27e8c591854ef349fdf5bec777355dae04bb48f.tar.gz
[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>
-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 1fa393f..204995a 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;
}
OpenPOWER on IntegriCloud