cxgb4: fix memory leak
authorGanesh Goudar <ganeshgr@chelsio.com>
Mon, 4 Sep 2017 05:46:28 +0000 (11:16 +0530)
committerDavid S. Miller <davem@davemloft.net>
Tue, 5 Sep 2017 21:27:50 +0000 (14:27 -0700)
commit128416acea9ffda4b6a0e08c8d549572e87533cd
treee7b0760bf99daf171bdefe4922125025d0843939
parent1cfe6e9351c256ec6aebcf64223aa21dc7654257
cxgb4: fix memory leak

do not reuse the loop counter which is used iterate over
the ports, so that sched_tbl will be freed for all the ports.

Signed-off-by: Ganesh Goudar <ganeshgr@chelsio.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/chelsio/cxgb4/sched.c