diff options
| author | Wenwen Wang <wenwen@cs.uga.edu> | 2019-08-12 00:59:21 -0500 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-11-12 19:13:30 +0100 |
| commit | 47886f2933610d90f0af055c29e017a43303f181 (patch) | |
| tree | cebf93bbbc1d5049ebf38d12dcc669fe9af28b89 /drivers/mtd/lpddr/lpddr_cmds.c | |
| parent | 1b374b0762da20bd4c8c3866de426ef9035b8d3d (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>
Diffstat (limited to 'drivers/mtd/lpddr/lpddr_cmds.c')
0 files changed, 0 insertions, 0 deletions
