diff options
author | Dave Jones <davej@redhat.com> | 2006-03-06 13:27:39 +0100 |
---|---|---|
committer | Jaroslav Kysela <perex@suse.cz> | 2006-03-22 10:35:23 +0100 |
commit | c27e8c591854ef349fdf5bec777355dae04bb48f (patch) | |
tree | 6f5903766b7aebb3221b0b7838502ea0140c332d | |
parent | a2df813beab42740fa8043b3fdc9e1d15784b9ec (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>
-rw-r--r-- | sound/pci/emu10k1/emu10k1_synth.c | 1 |
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; } |