Skip to contentSkip to conversation

2.6.x Tulip oops while doing eject/rmmod on live interface

PATCH In review Krzysztof Halasa 2 participants 2 messages Apr 26, 2004

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 2.6.x Tulip oops while doing eject/rmmod on live interface

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.

Signature · 1 line
Krzysztof Halasa, B*FH
drivers/net/tulip/tulip_core.c +1 -1
@@ -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
#1 lore raw
Quoted 7 lines · Krzysztof Halasa

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.

hmmm, yeah, looks like a bug. Thanks,

Jeff