mirror of
https://github.com/torvalds/linux.git
synced 2024-12-29 06:12:08 +00:00
[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 <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>
This commit is contained in:
parent
6f595cffed
commit
b1a3aa2091
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user