Commit caf9962c authored by Jaroslav Kysela's avatar Jaroslav Kysela

ALSA CVS update - Jaroslav Kysela <perex@suse.cz>

ALSA Core
<davej@redhat.com>
Try modprobing a driver that the hardware doesn't exist for.
In a few situations, you'll hit an oops due to proc_id not
being filled out that early.
parent 7637c739
......@@ -281,7 +281,8 @@ int snd_card_free(snd_card_t * card)
}
if (card->private_free)
card->private_free(card);
snd_info_unregister(card->proc_id);
if (card->proc_id)
snd_info_unregister(card->proc_id);
if (snd_info_card_free(card) < 0) {
snd_printk(KERN_WARNING "unable to free card info\n");
/* Not fatal error */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment