diff options
| author | Navid Emamdoost <navid.emamdoost@gmail.com> | 2019-12-14 19:10:44 -0600 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-12-31 16:41:18 +0100 |
| commit | 3740ae3cb4aceb451db75bc825cdc82f2e82e9b1 (patch) | |
| tree | c626031cbfbc1badf121032e5b72d630f20f9085 /include | |
| parent | f0465803facbf70f88e4dac8db2166a00da896c8 (diff) | |
net: gemini: Fix memory leak in gmac_setup_txqs
[ Upstream commit f37f710353677639bc5d37ee785335994adf2529 ]
In the implementation of gmac_setup_txqs() the allocated desc_ring is
leaked if TX queue base is not aligned. Release it via
dma_free_coherent.
Fixes: 4d5ae32f5e1e ("net: ethernet: Add a driver for Gemini gigabit ethernet")
Signed-off-by: Navid Emamdoost <navid.emamdoost@gmail.com>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions
