commit | 237a3a3b1544574ead3dc459063424de8c0319e0 | [log] [tgz] |
---|---|---|
author | Amir Vadai <amirv@mellanox.com> | Wed Aug 21 10:08:58 2013 +0300 |
committer | David S. Miller <davem@davemloft.net> | Wed Aug 21 12:19:26 2013 -0700 |
tree | 813670497a0922ae11c17bb23e05287b1ff12f39 | |
parent | bd2f631d7c60502e24e801a3eea1806868951bcc [diff] |
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 <amirv@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>