Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -540,6 +540,7 @@ static int gmac_setup_txqs(struct net_device *netdev)

	if (port->txq_dma_base & ~DMA_Q_BASE_MASK) {
		dev_warn(geth->dev, "TX queue base it not aligned\n");
		kfree(skb_tab);
		return -ENOMEM;
	}