Skip to content

Commit

Permalink
[PATCH] alsa: fix bogus snd_device_free() in opl3-oss.c
Browse files Browse the repository at this point in the history
Remove snd_device_free() for an opl3-oss instance which should have been
released.

Signed-off-by: Takashi Iwai <[email protected]>
Cc: Jaroslav Kysela <[email protected]>
Cc: <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
tiwai authored and Linus Torvalds committed Feb 24, 2006
1 parent 6f595cf commit b1a3aa2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sound/drivers/opl3/opl3_oss.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
Expand Down

0 comments on commit b1a3aa2

Please sign in to comment.