[Devel] [PATCH] e1000: memory leak in e1000_set_ringparam()

Vasily Averin vvs at sw.ru
Fri Aug 18 06:33:11 PDT 2006


Memory leak was found in 2.6.18-rc4 and e1000 7.2.7 from sourceforge:
Memory allocated for new tx_ring and rx_ring leaks if e1000_setup_XX_resources()
fails.c Also this patch reduces stack usage (removed tx_new and rx_new) and uses
kzalloc instead kmalloc+memset(0)

Signed-off-by: Vasily Averin <vvs at sw.ru>

Thank you,
	Vasily Averin
SWsoft Virtuozzo/OpenVZ Linux kernel team
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: diff-e1000-memleak-setring-20060818
URL: <http://lists.openvz.org/pipermail/devel/attachments/20060818/8d264e94/attachment-0001.ksh>


More information about the Devel mailing list