[ALSA] Fix use after free in opl3_seq and opl3_oss
authorDave Jones <davej@redhat.com>
Mon, 6 Mar 2006 13:03:37 +0000 (14:03 +0100)
committerJaroslav Kysela <perex@suse.cz>
Wed, 22 Mar 2006 09:36:15 +0000 (10:36 +0100)
commit5e315e9248329c53a8932b71532c28240125e3c4
treeb04a95d8f4aab4be44a3b19d4ace4f9337e4de11
parent3de4414e798795ef5d719622dbf12bbe27a9e72e
[ALSA] Fix use after free in opl3_seq and opl3_oss

Modules: OPL3

Don't read from free'd memory.  Also make use of the return
value, and don't register the device if something went wrong
creating the port.

Coverity #954, #955

Signed-off-by: Dave Jones <davej@redhat.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/drivers/opl3/opl3_oss.c
sound/drivers/opl3/opl3_seq.c