[ALSA][4/6] es968 double free.

From: davej
Date: Mon Mar 15 2004 - 14:32:56 EST


This oopses on rmmod, as we do pnp_unregister_card_driver twice.

Dave

--- linux-2.6.4/sound/isa/sb/es968.c~ 2004-03-15 18:11:42.000000000 +0000
+++ linux-2.6.4/sound/isa/sb/es968.c 2004-03-15 18:18:27.000000000 +0000
@@ -226,13 +226,10 @@
static int __init alsa_card_es968_init(void)
{
int res = pnp_register_card_driver(&es968_pnpc_driver);
- if (res == 0)
- {
- pnp_unregister_card_driver(&es968_pnpc_driver);
#ifdef MODULE
+ if (res == 0)
snd_printk(KERN_ERR "no ES968 based soundcards found\n");
#endif
- }
return res < 0 ? res : 0;
}

-
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/