From: Amir Vadai Date: Wed, 21 Aug 2013 07:08:58 +0000 (+0300) Subject: net/mlx4_en: Fix handling of dma_map failure X-Git-Tag: v3.12-rc1~132^2~221 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=237a3a3b1544574ead3dc459063424de8c0319e0;p=pandora-kernel.git net/mlx4_en: Fix handling of dma_map failure Result of skb_frag_dma_map() and dma_map_single() wasn't checked. Added a check and proper handling in case of failure. Moved the mapping to the beginning of mlx4_en_xmit(), before updating the ring data structure to make error handling easier. Signed-off-by: Amir Vadai Signed-off-by: David S. Miller --- Reading git-diff-tree failed