]> err.no Git - linux-2.6/commitdiff
[PATCH] alsa: fix bogus snd_device_free() in opl3-oss.c
authorTakashi Iwai <tiwai@suse.de>
Fri, 24 Feb 2006 21:03:52 +0000 (13:03 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Fri, 24 Feb 2006 22:31:36 +0000 (14:31 -0800)
Remove snd_device_free() for an opl3-oss instance which should have been
released.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Cc: Jaroslav Kysela <perex@suse.cz>
Cc: <stable@kernel.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
sound/drivers/opl3/opl3_oss.c

index 31f1f2e25aa076012d2b799d9619e1695f18887a..0345ae6476812803e1b539d75ffc54835b576cc8 100644 (file)
@@ -146,7 +146,7 @@ void snd_opl3_init_seq_oss(struct snd_opl3 *opl3, char *name)
 void snd_opl3_free_seq_oss(struct snd_opl3 *opl3)
 {
        if (opl3->oss_seq_dev) {
-               snd_device_free(opl3->card, opl3->oss_seq_dev);
+               /* The instance should have been released in prior */
                opl3->oss_seq_dev = NULL;
        }
 }