Commit f329924
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: 3f47e67 ("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>1 parent 1ada03f commit f329924
1 file changed
Lines changed: 4 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
978 | 978 | | |
979 | 979 | | |
980 | 980 | | |
981 | | - | |
982 | 981 | | |
983 | 982 | | |
984 | 983 | | |
985 | 984 | | |
986 | | - | |
| 985 | + | |
987 | 986 | | |
988 | 987 | | |
989 | 988 | | |
990 | 989 | | |
991 | | - | |
| 990 | + | |
992 | 991 | | |
993 | 992 | | |
994 | 993 | | |
995 | 994 | | |
996 | | - | |
| 995 | + | |
997 | 996 | | |
998 | 997 | | |
999 | 998 | | |
1000 | 999 | | |
1001 | 1000 | | |
| 1001 | + | |
1002 | 1002 | | |
1003 | 1003 | | |
1004 | 1004 | | |
| |||
0 commit comments