The `dma_map_XXX()` functions can fail and must be checked using
`dma_mapping_error()`. This patch adds proper error handling for all
DMA mapping calls.
In `atl1_alloc_rx_buffers()`, if DMA mapping fails, the buffer is
deallocated and marked accordingly.
In `atl1_tx_map()`, previously mapped buffers are unmapped and the
packet is dropped on failure.
If `atl1_xmit_frame()` drops the packet, increment the tx_error counter.
Fixes:
|
||
|---|---|---|
| .. | ||
| alx | ||
| atl1c | ||
| atl1e | ||
| atlx | ||
| Kconfig | ||
| Makefile | ||
| ag71xx.c | ||