net: calxedaxgmac: fix xgmac_xmit DMA mapping error handling
authorRob Herring <rob.herring@calxeda.com>
Fri, 30 Aug 2013 21:49:29 +0000 (16:49 -0500)
committerDavid S. Miller <davem@davemloft.net>
Wed, 4 Sep 2013 02:21:16 +0000 (22:21 -0400)
commit92cd4253e553e87a715243a36623945edcbf1ec7
tree46ca3c346fc1a1d5f53e76d3a34fee54018e5362
parent531cda20cd44d5a7a77debaaeaa407d4802d7e05
net: calxedaxgmac: fix xgmac_xmit DMA mapping error handling

On a DMA mapping error in xgmac_xmit, we should simply free the skb and
return NETDEV_TX_OK rather than -EIO. In the case of errors in mapping
frags, we need to undo everything that has been setup.

Reported-by: Andreas Herrmann <andreas.herrmann@calxeda.com>
Signed-off-by: Rob Herring <rob.herring@calxeda.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/calxeda/xgmac.c