From: Maciej W. Rozycki Date: Sat, 5 Jul 2014 14:14:40 +0000 (+0100) Subject: defxx: Handle DMA mapping errors X-Git-Tag: omap-for-v3.17/fixes-against-rc2~149^2~207^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b37cccf031bdcaba2f461cdb5a2b93ebbd0af03c;p=pandora-kernel.git defxx: Handle DMA mapping errors This adds error handling for DMA mapping requests; I think there isn't much else to say about it. A good side-effect is the mapping in the transmit path is now made with the board lock released. Also if DMA mapping fails for a newly allocated receive buffer, then data from the old buffer will be copied out (as is presently done for small frames only whose size does not exceed SKBUFF_RX_COPYBREAK) and the original buffer returned, with its mapping unchanged, to the DMA descriptor ring. Reported-by: Robert Coerver Tested-by: Robert Coerver Signed-off-by: Maciej W. Rozycki Signed-off-by: David S. Miller --- Reading git-diff-tree failed