summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorLorenzo Bianconi <lorenzo@kernel.org>2026-04-20 11:07:48 +0300
committerPaolo Abeni <pabeni@redhat.com>2026-04-23 13:17:35 +0300
commit4b91cb65789b794bfc8d50554b8994f8e0f16309 (patch)
treea27a7fa988636a3245a54e601c6f977b886f09d4 /scripts
parent379050947a1828826ad7ea50c95245a56929b35a (diff)
downloadlinux-4b91cb65789b794bfc8d50554b8994f8e0f16309.tar.xz
net: airoha: Add size check for TX NAPIs in airoha_qdma_cleanup()
If airoha_qdma_init routine fails before airoha_qdma_tx_irq_init() runs successfully for all TX NAPIs, airoha_qdma_cleanup() will unconditionally runs netif_napi_del() on TX NAPIs, triggering a NULL pointer dereference. Fix the issue relying on q_tx_irq size value to check if the TX NAPIs is properly initialized in airoha_qdma_cleanup(). Moreover, run netif_napi_add_tx() just if irq_q queue is properly allocated. Fixes: 23020f049327 ("net: airoha: Introduce ethernet support for EN7581 SoC") Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org> Link: https://patch.msgid.link/20260420-airoha_qdma_init_rx_queue-fix-v2-2-d99347e5c18d@kernel.org Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions