[PATCH] [UBUNTU:sound] Fix use after free() in pci/emu10k1/emu10k1_synth.c
crimsun at fungus.sh.nu
crimsun at fungus.sh.nu
Thu Mar 9 08:05:23 UTC 2006
UpstreamStatus: Added in upstream pci/emu10k1/emu10k1_synth.c r1.12
Dave Jones <davej at redhat.com> provided a patch that fixes a use after
free() in pci/emu10k1/emu10k1_synth.c::snd_emu10k1_synth_new_device().
The applied patch closes Coverity bug #958.
Signed-off-by: Daniel T Chen <crimsun at ubuntu.com>
---
sound/pci/emu10k1/emu10k1_synth.c | 1 -
1 files changed, 0 insertions(+), 1 deletions(-)
bb53bdb2df35cdc1b9fecdbdc41b1d9ec123b7dc
diff --git a/sound/pci/emu10k1/emu10k1_synth.c b/sound/pci/emu10k1/emu10k1_synth.c
index 8bd58d1..cdd0e46 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(
if (snd_emux_register(emu, dev->card, arg->index, "Emu10k1") < 0) {
snd_emux_free(emu);
- emu->hw = NULL;
return -ENOMEM;
}
--
1.1.3
--
Daniel T. Chen crimsun at ubuntu.com
GPG key: www.sh.nu/~crimsun/pubkey.gpg.asc
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <https://lists.ubuntu.com/archives/kernel-team/attachments/20060309/09f1bfc2/attachment.sig>
More information about the kernel-team
mailing list