[ALSA] Fix use after free in opl3_seq and opl3_oss
commit6f6c1475b6083f4d3ae4e0325084ff6631389ca6
authorDave Jones <davej@redhat.com>
Thu, 14 Dec 2006 23:39:00 +0000 (15 00:39 +0100)
committerAdrian Bunk <bunk@stusta.de>
Thu, 14 Dec 2006 23:39:00 +0000 (15 00:39 +0100)
tree21467c4dc34a1743898112f7ba1f65e674e33651
parent79bb71477142dd104a27a37bef36c1b1c4bbba43
[ALSA] Fix use after free in opl3_seq and opl3_oss

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: Adrian Bunk <bunk@stusta.de>
sound/drivers/opl3/opl3_oss.c
sound/drivers/opl3/opl3_seq.c