From: Takashi Iwai Date: Fri, 24 Feb 2006 21:03:52 +0000 (-0800) Subject: [PATCH] alsa: fix bogus snd_device_free() in opl3-oss.c X-Git-Tag: MMI-PSA29.97-13-9~51885 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=b1a3aa209161af3b7ca8ce8eae89b15faa96f612;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git [PATCH] alsa: fix bogus snd_device_free() in opl3-oss.c Remove snd_device_free() for an opl3-oss instance which should have been released. Signed-off-by: Takashi Iwai Cc: Jaroslav Kysela Cc: Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/sound/drivers/opl3/opl3_oss.c b/sound/drivers/opl3/opl3_oss.c index 31f1f2e25aa0..0345ae647681 100644 --- a/sound/drivers/opl3/opl3_oss.c +++ b/sound/drivers/opl3/opl3_oss.c @@ -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; } }