netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] net: korina: free array used for rx/tx descriptors
@ 2020-10-11 11:39 Valentin Vidic
  2020-10-11 18:37 ` Willem de Bruijn
  0 siblings, 1 reply; 6+ messages in thread
From: Valentin Vidic @ 2020-10-11 11:39 UTC (permalink / raw)
  To: David S. Miller
  Cc: Philip Rischel, Felix Fietkau, Florian Fainelli, Roman Yeryomin,
	Jakub Kicinski, Andrew Morton, Mike Rapoport, Martin Habets,
	Michael S. Tsirkin, Valentin Vidic, netdev, linux-kernel

Memory was not freed when driver is unloaded from the kernel.

Signed-off-by: Valentin Vidic <vvidic@valentin-vidic.from.hr>
---
 drivers/net/ethernet/korina.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/net/ethernet/korina.c b/drivers/net/ethernet/korina.c
index 03e034918d14..99146145f020 100644
--- a/drivers/net/ethernet/korina.c
+++ b/drivers/net/ethernet/korina.c
@@ -1133,6 +1133,7 @@ static int korina_remove(struct platform_device *pdev)
 	iounmap(lp->eth_regs);
 	iounmap(lp->rx_dma_regs);
 	iounmap(lp->tx_dma_regs);
+	kfree(lp->td_ring);
 
 	unregister_netdev(bif->dev);
 	free_netdev(bif->dev);
-- 
2.20.1


^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2020-10-12 17:07 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-11 11:39 [PATCH] net: korina: free array used for rx/tx descriptors Valentin Vidic
2020-10-11 18:37 ` Willem de Bruijn
2020-10-11 21:21   ` Valentin Vidić
2020-10-11 22:03     ` [PATCH v2] net: korina: fix kfree of rx/tx descriptor array Valentin Vidic
2020-10-11 22:53       ` Willem de Bruijn
2020-10-12 17:07         ` Jakub Kicinski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).