linux/drivers/net/ethernet/mediatek
Biao Huang 95b39f07a1 net: ethernet: mtk-star-emac: fix wrong unmap in RX handling
mtk_star_dma_unmap_rx() should unmap the dma_addr of old skb rather than
that of new skb.
Assign new_dma_addr to desc_data.dma_addr after all handling of old skb
ends to avoid unexpected receive side error.

Fixes: f96e9641e9 ("net: ethernet: mtk-star-emac: fix error path in RX handling")
Signed-off-by: Biao Huang <biao.huang@mediatek.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2021-03-02 15:28:07 -08:00
..
Kconfig net: ethernet: mtk-star-emac: select REGMAP_MMIO 2020-10-21 18:11:17 -07:00
Makefile net: ethernet: mtk-star-emac: new driver 2020-05-22 14:20:11 -07:00
mtk_eth_path.c net: mtk_eth: simplify the mediatek code return expression 2020-12-14 17:51:26 -08:00
mtk_eth_soc.c net: ethernet: mediatek: support setting MTU 2021-01-25 18:23:14 -08:00
mtk_eth_soc.h net: ethernet: mediatek: support setting MTU 2021-01-25 18:23:14 -08:00
mtk_sgmii.c net: mediatek: remove unneeded semicolon 2019-10-28 16:36:24 -07:00
mtk_star_emac.c net: ethernet: mtk-star-emac: fix wrong unmap in RX handling 2021-03-02 15:28:07 -08:00