mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH] fixup! net: rtl8139: fix ifdown/ifup issues
@ 2023-02-08  8:29 Denis Orlov
  0 siblings, 0 replies; only message in thread
From: Denis Orlov @ 2023-02-08  8:29 UTC (permalink / raw)
  To: barebox; +Cc: Denis Orlov

Fixes a typo.

Signed-off-by: Denis Orlov <denorl2009@gmail.com>
---
 drivers/net/rtl8139.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/rtl8139.c b/drivers/net/rtl8139.c
index 1cd2ae14de..5c91c10fea 100644
--- a/drivers/net/rtl8139.c
+++ b/drivers/net/rtl8139.c
@@ -412,7 +412,7 @@ static void rtl8139_eth_halt(struct eth_device *edev)
 	dma_free_coherent((void *)priv->tx_bufs, priv->tx_bufs_dma,
 			  TX_BUF_TOT_LEN);
 	dma_free_coherent((void *)priv->rx_ring, priv->rx_ring_dma,
-			  TX_BUF_TOT_LEN);
+			  RX_BUF_TOT_LEN);
 
 	/* Green! Put the chip in low-power mode. */
 	RTL_W8(priv, Cfg9346, Cfg9346_Unlock);
-- 
2.30.2




^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-02-08  8:31 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-02-08  8:29 [PATCH] fixup! net: rtl8139: fix ifdown/ifup issues Denis Orlov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox