Commit 294d7bd9 authored by Punnaiah Choudary Kalluri's avatar Punnaiah Choudary Kalluri Committed by Michal Simek
Browse files

net: xilinx_emacps: Add dma_mapping_error checking



CONFIG_DMA_API_DEBUG enabled kernel showed backtraces indicating that
"DMA-API: device driver failed to check map error [device
address=0x000000002e997802] [size=322 bytes] [mapped as single]"

Add the check, unwind the mappings if it is a fragmented frame and if the
check is failed then free the skb

Reported-by: default avatarMichal Simek <michal.simek@xilinx.com>
Signed-off-by: default avatarPunnaiah Choudary Kalluri <punnaia@xilinx.com>
Signed-off-by: default avatarMichal Simek <michal.simek@xilinx.com>
parent d2eacd3d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment