e1000: possible memory leak in e1000_set_ringparam
authorVasily Averin <vvs@sw.ru>
Wed, 27 Sep 2006 19:54:14 +0000 (12:54 -0700)
committerAuke Kok <juke-jan.h.kok@intel.com>
Wed, 27 Sep 2006 19:54:14 +0000 (12:54 -0700)
commit793fab727324adc90a0a2889f2b1d88bae4790eb
treeeadf2858ba29efe65cb416d74cb3afcc194715f3
parentdbf38c9474306297866d9c2af02c2d37c5165325
e1000: possible memory leak in e1000_set_ringparam

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@sw.ru>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Auke Kok <auke-jan.h.kok@intel.com>
drivers/net/e1000/e1000_ethtool.c