Fixes a typo. Signed-off-by: Denis Orlov <denorl2009@xxxxxxxxx> --- 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