Commit 44caebd3 authored by Igor Pylypiv's avatar Igor Pylypiv Committed by David S. Miller

net: gemini: fix memory leak

cppcheck report:
[drivers/net/ethernet/cortina/gemini.c:543]: (error) Memory leak: skb_tab
Signed-off-by: default avatarIgor Pylypiv <igor.pylypiv@gmail.com>
Acked-by: default avatarLinus Walleij <linus.walleij@linaro.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 00777fac
...@@ -540,6 +540,7 @@ static int gmac_setup_txqs(struct net_device *netdev) ...@@ -540,6 +540,7 @@ static int gmac_setup_txqs(struct net_device *netdev)
if (port->txq_dma_base & ~DMA_Q_BASE_MASK) { if (port->txq_dma_base & ~DMA_Q_BASE_MASK) {
dev_warn(geth->dev, "TX queue base it not aligned\n"); dev_warn(geth->dev, "TX queue base it not aligned\n");
kfree(skb_tab);
return -ENOMEM; return -ENOMEM;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment