OSDN Git Service

net: stmmac: Check for DMA mapping errors
authorThierry Reding <treding@nvidia.com>
Fri, 10 Mar 2017 16:34:57 +0000 (17:34 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 13 Mar 2017 06:35:20 +0000 (23:35 -0700)
commit937071c171ff3656e196c965c5179ba3f9f6a2fc
tree01415d9eed3d5a3e99082b0faf2af482880636ed
parent0ad2be79f254965f277fabdd7c64512527208f64
net: stmmac: Check for DMA mapping errors

When DMA mapping an SKB fragment, the mapping must be checked for
errors, otherwise the DMA debug code will complain upon unmap.

Signed-off-by: Thierry Reding <treding@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c