linux/drivers/net/ethernet/intel/e1000
Bo Chen ee400a3f1b e1000: ensure to free old tx/rx rings in set_ringparam()
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>
2018-08-24 08:52:35 -07:00
..
Makefile net: intel: Cleanup the copyright/license headers 2018-04-27 14:00:04 -04:00
e1000.h net: intel: Cleanup the copyright/license headers 2018-04-27 14:00:04 -04:00
e1000_ethtool.c e1000: ensure to free old tx/rx rings in set_ringparam() 2018-08-24 08:52:35 -07:00
e1000_hw.c net: intel: Cleanup the copyright/license headers 2018-04-27 14:00:04 -04:00
e1000_hw.h net: intel: Cleanup the copyright/license headers 2018-04-27 14:00:04 -04:00
e1000_main.c net: intel: Cleanup the copyright/license headers 2018-04-27 14:00:04 -04:00
e1000_osdep.h net: intel: Cleanup the copyright/license headers 2018-04-27 14:00:04 -04:00
e1000_param.c net: intel: Cleanup the copyright/license headers 2018-04-27 14:00:04 -04:00