| To: | Jeff Garzik <jgarzik@xxxxxxxxx> |
|---|---|
| Subject: | [PATCH] 2.6.x Tulip oops while doing eject/rmmod on live interface |
| From: | Krzysztof Halasa <khc@xxxxxxxxx> |
| Date: | Mon, 26 Apr 2004 03:30:41 +0200 |
| Cc: | <netdev@xxxxxxxxxxx> |
| Sender: | netdev-bounce@xxxxxxxxxxx |
Hi, The attached patch fixes an "oops" in tulip driver when a live interface is deactivated (i.e. PC Card ejected or module unloaded) without being brought down first. Please apply to Linux 2.6. Thanks. -- Krzysztof Halasa, B*FH --- linux/drivers/net/tulip/tulip_core.c 19 Apr 2004 17:04:06 -0000
+++ linux.orig/drivers/net/tulip/tulip_core.c 26 Apr 2004 01:08:31 -0000
@@ -1761,11 +1761,11 @@
return;
tp = netdev_priv(dev);
+ unregister_netdev(dev);
pci_free_consistent (pdev,
sizeof (struct tulip_rx_desc) * RX_RING_SIZE +
sizeof (struct tulip_tx_desc) * TX_RING_SIZE,
tp->rx_ring, tp->rx_ring_dma);
- unregister_netdev (dev);
if (tp->mtable)
kfree (tp->mtable);
#ifndef USE_IO_OPS
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: [PATCH r8169] ethtool support and sane speed selection/detection, Jon D Mason |
|---|---|
| Next by Date: | Re: [PATCH] 2.6.x Tulip oops while doing eject/rmmod on live interface, Jeff Garzik |
| Previous by Thread: | [cryptic-lkml@bloodletting.com: Re: Testing Dual Ethernet via Loopback], Anton Blanchard |
| Next by Thread: | Re: [PATCH] 2.6.x Tulip oops while doing eject/rmmod on live interface, Jeff Garzik |
| Indexes: | [Date] [Thread] [Top] [All Lists] |