[PW_SID:1061719] net: spacemit: A few error handling fixes#1556
[PW_SID:1061719] net: spacemit: A few error handling fixes#1556linux-riscv-bot wants to merge 2 commits into
Conversation
Even if we get a dma_mapping_error() while mapping an RX buffer, we should still update rx_ring->head to ensure that the buffers we were able to allocate and map are used. Fix this by breaking out to the existing code after the loop, analogous to the existing handling for skb allocation failure. Fixes: bfec6d7 ("net: spacemit: Add K1 Ethernet MAC") Signed-off-by: Vivian Wang <wangruikang@iscas.ac.cn> Signed-off-by: Linux RISC-V bot <linux.riscv.bot@gmail.com>
The DMA mappings were leaked on mapping error. Free them with the existing emac_free_tx_buf() function. Fixes: bfec6d7 ("net: spacemit: Add K1 Ethernet MAC") Signed-off-by: Vivian Wang <wangruikang@iscas.ac.cn> Signed-off-by: Linux RISC-V bot <linux.riscv.bot@gmail.com>
|
Patch 1: "[net,v2,1/2] net: spacemit: Fix error handling in emac_alloc_rx_desc_buffers()" |
|
Patch 1: "[net,v2,1/2] net: spacemit: Fix error handling in emac_alloc_rx_desc_buffers()" |
|
Patch 1: "[net,v2,1/2] net: spacemit: Fix error handling in emac_alloc_rx_desc_buffers()" |
|
Patch 1: "[net,v2,1/2] net: spacemit: Fix error handling in emac_alloc_rx_desc_buffers()" |
|
Patch 1: "[net,v2,1/2] net: spacemit: Fix error handling in emac_alloc_rx_desc_buffers()" |
|
Patch 1: "[net,v2,1/2] net: spacemit: Fix error handling in emac_alloc_rx_desc_buffers()" |
|
Patch 1: "[net,v2,1/2] net: spacemit: Fix error handling in emac_alloc_rx_desc_buffers()" |
|
Patch 1: "[net,v2,1/2] net: spacemit: Fix error handling in emac_alloc_rx_desc_buffers()" |
|
Patch 1: "[net,v2,1/2] net: spacemit: Fix error handling in emac_alloc_rx_desc_buffers()" |
|
Patch 1: "[net,v2,1/2] net: spacemit: Fix error handling in emac_alloc_rx_desc_buffers()" |
|
Patch 1: "[net,v2,1/2] net: spacemit: Fix error handling in emac_alloc_rx_desc_buffers()" |
|
Patch 1: "[net,v2,1/2] net: spacemit: Fix error handling in emac_alloc_rx_desc_buffers()" |
|
Patch 2: "[net,v2,2/2] net: spacemit: Fix error handling in emac_tx_mem_map()" |
|
Patch 2: "[net,v2,2/2] net: spacemit: Fix error handling in emac_tx_mem_map()" |
|
Patch 2: "[net,v2,2/2] net: spacemit: Fix error handling in emac_tx_mem_map()" |
|
Patch 2: "[net,v2,2/2] net: spacemit: Fix error handling in emac_tx_mem_map()" |
|
Patch 2: "[net,v2,2/2] net: spacemit: Fix error handling in emac_tx_mem_map()" |
|
Patch 2: "[net,v2,2/2] net: spacemit: Fix error handling in emac_tx_mem_map()" |
|
Patch 2: "[net,v2,2/2] net: spacemit: Fix error handling in emac_tx_mem_map()" |
|
Patch 2: "[net,v2,2/2] net: spacemit: Fix error handling in emac_tx_mem_map()" |
|
Patch 2: "[net,v2,2/2] net: spacemit: Fix error handling in emac_tx_mem_map()" |
|
Patch 2: "[net,v2,2/2] net: spacemit: Fix error handling in emac_tx_mem_map()" |
|
Patch 2: "[net,v2,2/2] net: spacemit: Fix error handling in emac_tx_mem_map()" |
|
Patch 2: "[net,v2,2/2] net: spacemit: Fix error handling in emac_tx_mem_map()" |
PR for series 1061719 applied to workflow__riscv__fixes
Name: net: spacemit: A few error handling fixes
URL: https://patchwork.kernel.org/project/linux-riscv/list/?series=1061719
Version: 2