[patch 22/39] [PATCH] alsa: fix bogus snd_device_free() in opl3-oss.c

From: Chris Wright
Date: Mon Feb 27 2006 - 17:35:52 EST


-stable review patch. If anyone has any objections, please let us know.
------------------

Remove snd_device_free() for an opl3-oss instance which should have been
released.

Signed-off-by: Takashi Iwai <tiwai@xxxxxxx>
Cc: Jaroslav Kysela <perex@xxxxxxx>
Cc: <stable@xxxxxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxx>
Signed-off-by: Chris Wright <chrisw@xxxxxxxxxxxx>
---

sound/drivers/opl3/opl3_oss.c | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)

--- linux-2.6.15.4.orig/sound/drivers/opl3/opl3_oss.c
+++ linux-2.6.15.4/sound/drivers/opl3/opl3_oss.c
@@ -146,7 +146,7 @@ void snd_opl3_init_seq_oss(opl3_t *opl3,
void snd_opl3_free_seq_oss(opl3_t *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;
}
}

--
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/