]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
net: spacemit: Fix error handling in emac_tx_mem_map()
authorVivian Wang <wangruikang@iscas.ac.cn>
Thu, 5 Mar 2026 06:39:39 +0000 (14:39 +0800)
committerJakub Kicinski <kuba@kernel.org>
Sat, 7 Mar 2026 02:58:34 +0000 (18:58 -0800)
commit86292155bea578ebab0ca3b65d4d87ecd8a0e9ea
tree859de409bb98a75812bdc9d5f04be5fa1f57d655
parent3aa1417803c1833cbd5bacb7e6a6489a196f2519
net: spacemit: Fix error handling in emac_tx_mem_map()

The DMA mappings were leaked on mapping error. Free them with the
existing emac_free_tx_buf() function.

Fixes: bfec6d7f2001 ("net: spacemit: Add K1 Ethernet MAC")
Signed-off-by: Vivian Wang <wangruikang@iscas.ac.cn>
Link: https://patch.msgid.link/20260305-k1-ethernet-more-fixes-v2-2-e4e434d65055@iscas.ac.cn
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/spacemit/k1_emac.c