Searched hist:"71791 dc8bdea55eeb2a0caefe98a0b7450c6e0af" (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/drivers/net/ethernet/xilinx/ |
H A D | xilinx_axienet_main.c | diff 71791dc8bdea55eeb2a0caefe98a0b7450c6e0af Tue Mar 24 08:23:40 CDT 2020 Andre Przywara <andre.przywara@arm.com> net: axienet: Check for DMA mapping errors
Especially with the default 32-bit DMA mask, DMA buffers are a limited resource, so their allocation can fail. So as the DMA API documentation requires, add error checking code after dma_map_single() calls to catch the case where we run out of "low" memory.
Signed-off-by: Andre Przywara <andre.przywara@arm.com> Signed-off-by: David S. Miller <davem@davemloft.net>
|