Skip to content

net: airoha: Fix NULL pointer derefrences in airoha_qdma_cleanup()

Lorenzo Bianconi linux-arm-kernel linux-mediatek netdev 2 versions – Applied

Status from this message: This series was applied to netdev/net.git (main)

Get series with b4
b4 am 20260420-airoha_qdma_init_rx_queue-fix-v2-0-d99347e5c18d@kernel.org change-id 20260417-airoha_qdma_init_rx_queue-fix-b9bfada51671

Versions newest first

  1. v2 Latest2 patches 2 repliesApplied 2/2
  2. v12 patches 0 repliesSuperseded

Changes in v2 from the cover letter

- Move page_pool allocation after desc list allocation in
airoha_qdma_init_rx_queue()
- Move netif_napi_add_tx() after irq desc queue allocation in
airoha_qdma_tx_irq_init()
- Link to v1: https://lore.kernel.org/r/20260417-airoha_qdma_init_rx_queue-fix-v1-0-db9fa5e468e5@kernel.org

Patches in v2 All 2 applied

#Subject and filesSizeRepliesApplied
1/2net: airoha: Move ndesc initialization at end of airoha_qdma_init_rx_queue()drivers/net/ethernet/airoha/airoha_eth.c+7 -71 replyApplied
2/2net: airoha: Add size check for TX NAPIs in airoha_qdma_cleanup()drivers/net/ethernet/airoha/airoha_eth.c+8 -31 replyApplied

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH net v2 0/2] net: airoha: Fix NULL pointer derefrences in airoha_qdma_cleanup()

Fix two possible NULL pointer derefrences in airoha_qdma_cleanup routine if airoha_qdma_init() fails.

---
Changes in v2:
- Move page_pool allocation after desc list allocation in
airoha_qdma_init_rx_queue()
- Move netif_napi_add_tx() after irq desc queue allocation in
airoha_qdma_tx_irq_init()
- Link to v1: https://lore.kernel.org/r/20260417-airoha_qdma_init_rx_queue-fix-v1-0-db9fa5e468e5@kernel.org

---
Lorenzo Bianconi (2):
net: airoha: Move ndesc initialization at end of airoha_qdma_init_rx_queue()
net: airoha: Add size check for TX NAPIs in airoha_qdma_cleanup()

 drivers/net/ethernet/airoha/airoha_eth.c | 25 +++++++++++++++----------
 1 file changed, 15 insertions(+), 10 deletions(-)

---
base-commit: 0cf004ffb61cd32d140531c3a84afe975f9fc7ea
change-id: 20260417-airoha_qdma_init_rx_queue-fix-b9bfada51671

Best regards,

Signature · 1 line
Lorenzo Bianconi <[email protected]>