summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorBo Chen <chenbo@pdx.edu>2018-07-23 09:01:30 -0700
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-10-10 08:52:09 +0200
commitb8d10a09f81a0b7566a4291c756a08e402abbd4c (patch)
tree4d6fe9fc5264be1978e361fdb546cce238ffa018 /include/linux
parentc5bf8b49cc5a8416aea41645e64cdb8aa613c788 (diff)
e1000: ensure to free old tx/rx rings in set_ringparam()
[ Upstream commit ee400a3f1bfe7004a3e14b81c38ccc5583c26295 ] In 'e1000_set_ringparam()', the tx_ring and rx_ring are updated with new value and the old tx/rx rings are freed only when the device is up. There are resource leaks on old tx/rx rings when the device is not up. This bug is reported by COD, a tool for testing kernel module binaries I am building. This patch fixes the bug by always calling 'kfree()' on old tx/rx rings in 'e1000_set_ringparam()'. Signed-off-by: Bo Chen <chenbo@pdx.edu> Reviewed-by: Alexander Duyck <alexander.h.duyck@intel.com> Tested-by: Aaron Brown <aaron.f.brown@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com> Signed-off-by: Sasha Levin <alexander.levin@microsoft.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions