Subject: [PATCH] fix MCA when shutting down tulip quad-NIC

From: Olaf Hering <[email-masked]>
Date: Tue, 3 Apr 2007 23:19:16 +0200

From: [email-masked]

 https://bugzilla.novell.com/show_bug.cgi?id=SUSE39204

Shutting down the network causes an MCA because of an IO TLB error when
a DEC quad 10/100 card is in any slot.  This problem was originally seen
on an HP rx4640.

Signed-off-by: Olaf Hering <[email-masked]>

---

Andrew: Why is it tp->pdev instead of pdev?

 drivers/net/tulip/tulip_core.c |    1 +
 1 file changed, 1 insertion(+)

Index: b/drivers/net/tulip/tulip_core.c
===================================================================
--- a/drivers/net/tulip/tulip_core.c
+++ b/drivers/net/tulip/tulip_core.c
@@ -1798,6 +1798,7 @@ static void __devexit tulip_remove_one (
 		return;
 
 	tp = netdev_priv(dev);
+	pci_disable_device(tp->pdev);
 	unregister_netdev(dev);
 	pci_free_consistent (pdev,
 			     sizeof (struct tulip_rx_desc) * RX_RING_SIZE +