From: Dominik Brodowski <linux@brodo.de>
To: Stelian Pop <stelian.pop@fr.alcove.com>,
Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: pcmcia_bus_type changes cause oops...
Date: Mon, 24 Mar 2003 17:25:19 +0100 [thread overview]
Message-ID: <20030324162519.GB2194@brodo.de> (raw)
In-Reply-To: <20030324153659.GA32044@hottah.alcove-fr>
Hi Stelian,
Thanks for your bug report. Let me analyze it a bit:
> ds: no socket drivers loaded!
ds.o is loaded for the first time, but fails as the yenta-socket driver was
not loaded before
> pcnet_cs: Unknown symbol pcmcia_unregister_driver
> pcnet_cs: Unknown symbol pcmcia_register_driver
This is strange. There is an EXPORT_SYMBOL(pcmcia_register_driver) ...
maybe gets away after a "make clean"... not worriesome, though; as the
loading continues.
> kobject pcmcia: registering. parent: <NULL>, set: bus
ds.o is loaded for the second time; and pcmcia_bus_type is to be added
again. Due to a bug in ds.c it didn't get unregistered in the failed loading
of ds.o - the attached patch should fix it. Could you please try it?
It is strange, though, that you nonetheless managed to get it to work with
"inadvertedly modified" timings...
Thanks,
Dominik
--- linux/drivers/pcmcia/ds.c.original 2003-03-24 17:23:29.000000000 +0100
+++ linux/drivers/pcmcia/ds.c 2003-03-24 17:14:10.000000000 +0100
@@ -920,16 +920,16 @@
pcmcia_get_card_services_info(&serv);
if (serv.Revision != CS_RELEASE_CODE) {
printk(KERN_NOTICE "ds: Card Services release does not match!\n");
- return -1;
+ goto error;
}
if (serv.Count == 0) {
printk(KERN_NOTICE "ds: no socket drivers loaded!\n");
- return -1;
+ goto error;
}
sockets = serv.Count;
socket_table = kmalloc(sockets*sizeof(socket_info_t), GFP_KERNEL);
- if (!socket_table) return -1;
+ if (!socket_table) goto error;
for (i = 0, s = socket_table; i < sockets; i++, s++) {
s->state = 0;
s->user = NULL;
@@ -984,6 +984,9 @@
init_status = 0;
#endif
return 0;
+ error:
+ bus_unregister(&pcmcia_bus_type);
+ return 1;
}
next prev parent reply other threads:[~2003-03-24 16:14 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-03-24 15:36 Stelian Pop
2003-03-24 16:25 ` Dominik Brodowski [this message]
2003-03-24 16:37 ` Stelian Pop
2003-03-24 17:17 ` Dominik Brodowski
2003-03-24 17:25 ` Stelian Pop
2003-03-24 20:14 ` [CFT/RFC] pcmcia bus driver as an interface to pcmcia_socket class_type devices [Was: Re: pcmcia_bus_type changes cause oops...] Dominik Brodowski
2003-03-24 22:59 ` Stelian Pop
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20030324162519.GB2194@brodo.de \
--to=linux@brodo.de \
--cc=linux-kernel@vger.kernel.org \
--cc=stelian.pop@fr.alcove.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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®