From: Luca Giuzzi <giuzzi@dmf.bs.unicatt.it>
To: jarek@swipnet.se, linux-kernel@vger.kernel.org
Subject: Re: Oops in test10 during module loading of 3c509
Date: Wed, 1 Nov 2000 22:03:05 +0100 [thread overview]
Message-ID: <200011012103.eA1L35D03854@banach.dmf.bs.unicatt.it> (raw)
It seems the cleaning up of the network drivers has been a tad too
aggressive :) There is no init_etherdev() anymore in 3c509.c
The following patch seems to solve the problem.
(the code is taken from a working test10pre5)
Cheers,
lg
--- 3c509.c.test10-broken Wed Nov 1 17:12:08 2000
+++ 3c509.c Wed Nov 1 17:13:37 2000
@@ -434,6 +434,13 @@
/* Free the interrupt so that some other card can use it. */
outw(0x0f00, ioaddr + WN0_IRQ);
found:
+ if (dev == NULL) {
+ dev = init_etherdev(dev, sizeof(struct el3_private));
+ if (dev == NULL) {
+ release_region(ioaddr, EL3_IO_EXTENT);
+ return -ENOMEM;
+ }
+ }
memcpy(dev->dev_addr, phys_addr, sizeof(phys_addr));
dev->base_addr = ioaddr;
dev->irq = irq;
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/
next reply other threads:[~2000-11-01 21:03 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-11-01 21:03 Luca Giuzzi [this message]
-- strict thread matches above, loose matches on Subject: below --
2000-10-31 22:46 Jarek Luberek
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=200011012103.eA1L35D03854@banach.dmf.bs.unicatt.it \
--to=giuzzi@dmf.bs.unicatt.it \
--cc=jarek@swipnet.se \
--cc=linux-kernel@vger.kernel.org \
/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®