Skip to content
Commit 8472ba62 authored by Wenwen Wang's avatar Wenwen Wang Committed by Jeff Kirsher
Browse files

e1000: fix memory leaks



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: default avatarWenwen Wang <wenwen@cs.uga.edu>
Tested-by: default avatarAaron Brown <aaron.f.brown@intel.com>
Signed-off-by: default avatarJeff Kirsher <jeffrey.t.kirsher@intel.com>
parent 2c19e395
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment