[PATCH net 0/2] net/stmmac: Secure against failures of DMA memory allocation
Jakub Raczynski
j.raczynski at samsung.com
Tue Jul 7 10:41:13 PDT 2026
This series fixing two possible issues related to fails of
__alloc_dma_rx_desc_resources(). Original issue from 1st patch is related to
page_pool that has happened in testing env, while second was requested by
Sashiko to have similar change for DMA allocation.
To have complete fix for all failures of __alloc_dma_rx_desc_resources(),
merge two fixes into series.
---
Note:
1st patch "Set Rx queue page_pool to NULL when freeing DMA resources" is
set to v2 while this series is v1. I know this is inconsistent, but this
series is not v2 and would be even more confusing.
Hopefully that doesn't break some CI, as second patch is v1.
Link to original:
https://lore.kernel.org/netdev/20260630100953.747868-1-j.raczynski@samsung.com/
Changes in v2 (in first patch):
- Added reviewed by Maxime
- Dropped null check as page_pool_destroy() does provide that
- Modified comment to reflect that
Jakub Raczynski (2):
net/stmmac: Set Rx queue page_pool to NULL when freeing DMA resources
net/stmmac: Prevent dma queue NULL free on allocation failure
.../net/ethernet/stmicro/stmmac/stmmac_main.c | 20 +++++++++++--------
1 file changed, 12 insertions(+), 8 deletions(-)
--
2.34.1
More information about the linux-arm-kernel
mailing list