Commit c418dd53 authored by Hirofumi Ogawa's avatar Hirofumi Ogawa Committed by Jeff Garzik

[netdrvr 8139too] remove driver-based poisoning of net_device

Harmless in 2.4, but causes oopses on rmmod in 2.6.

slab poisoning can take care of this for us, anyway.
parent 7cc6719e
...@@ -733,13 +733,6 @@ static void __rtl8139_cleanup_dev (struct net_device *dev) ...@@ -733,13 +733,6 @@ static void __rtl8139_cleanup_dev (struct net_device *dev)
/* it's ok to call this even if we have no regions to free */ /* it's ok to call this even if we have no regions to free */
pci_release_regions (pdev); pci_release_regions (pdev);
#ifndef RTL8139_NDEBUG
/* poison memory before freeing */
memset (dev, 0xBC,
sizeof (struct net_device) +
sizeof (struct rtl8139_private));
#endif /* RTL8139_NDEBUG */
free_netdev(dev); free_netdev(dev);
pci_set_drvdata (pdev, NULL); pci_set_drvdata (pdev, NULL);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment