* [ALSA][4/6] es968 double free.
@ 2004-03-15 19:27 davej
0 siblings, 0 replies; only message in thread
From: davej @ 2004-03-15 19:27 UTC (permalink / raw)
To: linux-kernel
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;
}
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2004-03-15 19:29 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-03-15 19:27 [ALSA][4/6] es968 double free davej
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®