]> err.no Git - linux-2.6/commit
[PATCH] e1000: avoid leak when e1000_setup_loopback_test fails
authorJohn W. Linville <linville@tuxdriver.com>
Tue, 8 Nov 2005 20:45:02 +0000 (15:45 -0500)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 18 Nov 2005 18:52:39 +0000 (13:52 -0500)
commite98fc4aae10b925ad5aa739c483abf78d80b66db
treebb7ff2db2dcf8630e72a4b26b32319d59d0467d7
parentcd52d1ee9a92587b242d946a2300a3245d3b885a
[PATCH] e1000: avoid leak when e1000_setup_loopback_test fails

In e1000_loopback_test, make sure to call e1000_free_desc_rings if
e1000_setup_loopback_test fails.  Currently in that case it will not
get called, causing a leak.

Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/e1000/e1000_ethtool.c