diff options
author | Rob Herring <rob.herring@calxeda.com> | 2013-08-31 01:49:29 +0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-09-04 06:21:16 +0400 |
commit | 92cd4253e553e87a715243a36623945edcbf1ec7 (patch) | |
tree | 46ca3c346fc1a1d5f53e76d3a34fee54018e5362 /drivers/pci/iov.c | |
parent | 531cda20cd44d5a7a77debaaeaa407d4802d7e05 (diff) | |
download | linux-92cd4253e553e87a715243a36623945edcbf1ec7.tar.xz |
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>
Diffstat (limited to 'drivers/pci/iov.c')
0 files changed, 0 insertions, 0 deletions