[PATCH AUTOSEL 4.4 4/7] e1000: ensure to free old tx/rx rings in set_ringparam()

2018-09-19 Thread Sasha Levin
From: Bo Chen [ 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

[PATCH AUTOSEL 4.4 4/7] e1000: ensure to free old tx/rx rings in set_ringparam()

2018-09-19 Thread Sasha Levin
From: Bo Chen [ 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