mirror of
https://github.com/torvalds/linux.git
synced 2026-05-25 15:41:52 +02:00
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:
|
||
|---|---|---|
| .. | ||
| atl1.c | ||
| atl1.h | ||
| atl2.c | ||
| atl2.h | ||
| atlx.c | ||
| atlx.h | ||
| Makefile | ||