Commit 4e076ff
net: airoha: Fix NULL pointer dereference in airoha_qdma_cleanup_rx_queue()
Move page_pool_get_dma_dir() inside the while loop of
airoha_qdma_cleanup_rx_queue routine in order to avoid possible NULL
pointer dereference if airoha_qdma_init_rx_queue() fails before
properly allocating the page_pool pointer.
Fixes: 23020f0 ("net: airoha: Introduce ethernet support for EN7581 SoC")
Signed-off-by: Lorenzo Bianconi <[email protected]>
Reviewed-by: Simon Horman <[email protected]>
Link: https://patch.msgid.link/7330a41bba720c33abc039955f6172457a3a34f0.1721205981.git.lorenzo@kernel.org
Signed-off-by: Paolo Abeni <[email protected]>1 parent a1a3053 commit 4e076ff
1 file changed
+1
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1585 | 1585 | | |
1586 | 1586 | | |
1587 | 1587 | | |
1588 | | - | |
1589 | 1588 | | |
1590 | 1589 | | |
1591 | 1590 | | |
1592 | 1591 | | |
1593 | 1592 | | |
1594 | 1593 | | |
1595 | 1594 | | |
1596 | | - | |
| 1595 | + | |
1597 | 1596 | | |
1598 | 1597 | | |
1599 | 1598 | | |
| |||
0 commit comments