commit | 18372c98cf9ebc696ac6ccef904592ab30fc2d3d | [log] [tgz] |
---|---|---|
author | Wenwen Wang <wenwen@cs.uga.edu> | Mon Aug 12 00:59:21 2019 -0500 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Tue Nov 12 19:16:07 2019 +0100 |
tree | fa240f07ac08599db3686ebb21dc64bc2a42f10a | |
parent | d0844089e3e2ae95865e8526b4f48d9acdeb72b7 [diff] |
e1000: fix memory leaks [ Upstream commit 8472ba62154058b64ebb83d5f57259a352d28697 ] In e1000_set_ringparam(), 'tx_old' and 'rx_old' are not deallocated if e1000_up() fails, leading to memory leaks. Refactor the code to fix this issue. Signed-off-by: Wenwen Wang <wenwen@cs.uga.edu> Tested-by: Aaron Brown <aaron.f.brown@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com> Signed-off-by: Sasha Levin <sashal@kernel.org>