diff options
| author | 2026-04-17 08:36:31 +0200 | |
|---|---|---|
| committer | 2026-04-23 09:07:57 +0200 | |
| commit | f329924bb49458c65297f1361f545816a5b90998 (patch) | |
| tree | 9a84c1448cf80517510e96a0dd368a78c550219c /include/linux/bcma/ssh:/git@git.zx2c4.com | |
| parent | net/sched: sch_sfb: annotate data-races in sfb_dump_stats() (diff) | |
net: airoha: Move ndesc initialization at end of airoha_qdma_init_tx()
If queue entry list allocation fails in airoha_qdma_init_tx_queue routine,
airoha_qdma_cleanup_tx_queue() will trigger a NULL pointer dereference
accessing the queue entry array. The issue is due to the early ndesc
initialization in airoha_qdma_init_tx_queue(). Fix the issue moving ndesc
initialization at end of airoha_qdma_init_tx routine.
Fixes: 3f47e67dff1f7 ("net: airoha: Add the capability to consume out-of-order DMA tx descriptors")
Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
Link: https://patch.msgid.link/20260417-airoha_qdma_cleanup_tx_queue-fix-net-v4-1-e04bcc2c9642@kernel.org
Reviewed-by: Simon Horman <horms@kernel.org>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'include/linux/bcma/ssh:/git@git.zx2c4.com')
0 files changed, 0 insertions, 0 deletions
