net: ethernet: ti: davinci_cpdma: free memory while channel destroy
authorIvan Khoronzhuk <ivan.khoronzhuk@linaro.org>
Tue, 8 Nov 2016 13:16:05 +0000 (15:16 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sun, 13 Nov 2016 02:06:50 +0000 (21:06 -0500)
commitb602e491a518439abd98a25ccded85e1347b9a14
tree1e25747e2c12df86484617daa3702414aef98779
parent6b8609d85946af7a846a6833b496dd875473c18e
net: ethernet: ti: davinci_cpdma: free memory while channel destroy

While create/destroy channel operation memory is not freed. It was
supposed that memory is freed while driver remove. But a channel
can be created and destroyed many times while changing number of
channels with ethtool.

Based on net-next/master

Signed-off-by: Ivan Khoronzhuk <ivan.khoronzhuk@linaro.org>
Reviewed-by: Grygorii Strashko <grygorii.strashko@ti.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/ti/davinci_cpdma.c