diff options
author | Navid Emamdoost <navid.emamdoost@gmail.com> | 2019-12-14 19:10:44 -0600 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-12-16 16:26:54 -0800 |
commit | f37f710353677639bc5d37ee785335994adf2529 (patch) | |
tree | 298b95edf7f3ca9b59050c14e410b7821193770e /net | |
parent | 63cc54a6f0736a432b04308a74677ab0ba8a58ee (diff) | |
download | linux-f37f710353677639bc5d37ee785335994adf2529.tar.gz linux-f37f710353677639bc5d37ee785335994adf2529.tar.bz2 linux-f37f710353677639bc5d37ee785335994adf2529.zip |
net: gemini: Fix memory leak in gmac_setup_txqs
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>
Diffstat (limited to 'net')
0 files changed, 0 insertions, 0 deletions