[PATCH 2.4/2.5] fix ne2k-pci memleak

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.

--- 1.8/drivers/net/ne2k-pci.c	Wed Mar 20 17:06:55 2002
+++ edited/ne2k-pci.c	Fri Jul 11 18:52:41 2003
@@ -634,6 +634,7 @@
 
 	unregister_netdev(dev);
 	release_region(dev->base_addr, NE_IO_EXTENT);
+	kfree(dev->priv);
 	kfree(dev);
 	pci_set_drvdata(pdev, NULL);
 }

-
: send the line "unsubscribe linux-net" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux 802.1Q VLAN]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Git]     [Bugtraq]     [Yosemite News and Information]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux PCI]     [Linux Admin]     [Samba]

  Powered by Linux