net: mediatek: fix missing free of scratch memory
authorJohn Crispin <john@phrozen.org>
Fri, 10 Jun 2016 11:27:59 +0000 (13:27 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sat, 11 Jun 2016 06:29:28 +0000 (23:29 -0700)
commit605e4fe476956c67ced8518247e6c9601a31b868
treeeb1cdfbeed055e2e2b44512c0cd1019ad2911205
parent562c5a70400c75f50d99de631666ac7cc2f03958
net: mediatek: fix missing free of scratch memory

Scratch memory gets allocated in mtk_init_fq_dma() but the corresponding
code to free it is missing inside mtk_dma_free() causing a memory leak.
With this patch applied, we can run ifconfig up/down several thousand
times without any problems.

Signed-off-by: John Crispin <john@phrozen.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mediatek/mtk_eth_soc.c
drivers/net/ethernet/mediatek/mtk_eth_soc.h