diff options
| author | Thomas Fourier <[email protected]> | 2025-06-19 09:45:30 +0000 |
|---|---|---|
| committer | Jakub Kicinski <[email protected]> | 2025-06-23 23:42:39 +0000 |
| commit | d5e3241c5a386a2425823c8c7afb77a465bd040f (patch) | |
| tree | 4c1051f33ef661a4474cfd6fea7b3bbc857b3742 /net/unix/af_unix.c | |
| parent | net: netpoll: Initialize UDP checksum field before checksumming (diff) | |
| download | kernel-d5e3241c5a386a2425823c8c7afb77a465bd040f.tar.gz kernel-d5e3241c5a386a2425823c8c7afb77a465bd040f.zip | |
ethernet: ionic: Fix DMA mapping tests
Change error values of `ionic_tx_map_single()` and `ionic_tx_map_frag()`
from 0 to `DMA_MAPPING_ERROR` to prevent collision with 0 as a valid
address.
This also fixes the use of `dma_mapping_error()` to test against 0 in
`ionic_xdp_post_frame()`
Fixes: 0f3154e6bcb3 ("ionic: Add Tx and Rx handling")
Fixes: 56e41ee12d2d ("ionic: better dma-map error handling")
Fixes: ac8813c0ab7d ("ionic: convert Rx queue buffers to use page_pool")
Signed-off-by: Thomas Fourier <[email protected]>
Reviewed-by: Brett Creeley <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions
