Skip to content

Commit

Permalink
[ALSA] emu10k1_synth use after free
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Dave Jones authored and Jaroslav Kysela committed Mar 22, 2006
1 parent a2df813 commit c27e8c5
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion sound/pci/emu10k1/emu10k1_synth.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit c27e8c5

Please sign in to comment.