Commit e2362156 authored by Daniel Ritz's avatar Daniel Ritz Committed by Jeff Garzik

[PATCH] fix ne2k-pci memleak

ne2k-pci leaks memory on unload. dev->priv is allocated in ethdev_init(), but
never freed. against 2.4-bk, but also applies to 2.5-bk with offset.
parent be1f6b36
......@@ -635,6 +635,7 @@ static void __devexit ne2k_pci_remove_one (struct pci_dev *pdev)
unregister_netdev(dev);
release_region(dev->base_addr, NE_IO_EXTENT);
kfree(dev->priv);
kfree(dev);
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