commit | 92cd4253e553e87a715243a36623945edcbf1ec7 | [log] [tgz] |
---|---|---|
author | Rob Herring <rob.herring@calxeda.com> | Fri Aug 30 16:49:29 2013 -0500 |
committer | David S. Miller <davem@davemloft.net> | Tue Sep 03 22:21:16 2013 -0400 |
tree | 46ca3c346fc1a1d5f53e76d3a34fee54018e5362 | |
parent | 531cda20cd44d5a7a77debaaeaa407d4802d7e05 [diff] |
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>