diff options
author | Patrick McHardy <kaber@trash.net> | 2009-06-12 01:34:37 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-06-13 04:18:43 -0400 |
commit | 81fbbf60408ad6b98ff72120de948cb7fd2498d0 (patch) | |
tree | 5612bc41fdce360b4846ce1142d7f7db59765a7d /net/atm/lec.c | |
parent | 98ca4a46d27348476c9196ebc0a0c5297431d90f (diff) |
net: fix network drivers ndo_start_xmit() return values (part 7)
Fix up ATM drivers that return an errno value to qdisc_restart(), causing
qdisc_restart() to print a warning an requeue/retransmit the skb.
- lec: condition can only be remedied by userspace, until that retransmissions
Compile tested only.
Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/atm/lec.c')
-rw-r--r-- | net/atm/lec.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/net/atm/lec.c b/net/atm/lec.c index 75b9d59553fc..ff2e594dca9b 100644 --- a/net/atm/lec.c +++ b/net/atm/lec.c | |||
@@ -270,7 +270,8 @@ static int lec_start_xmit(struct sk_buff *skb, struct net_device *dev) | |||
270 | printk("%s:No lecd attached\n", dev->name); | 270 | printk("%s:No lecd attached\n", dev->name); |
271 | dev->stats.tx_errors++; | 271 | dev->stats.tx_errors++; |
272 | netif_stop_queue(dev); | 272 | netif_stop_queue(dev); |
273 | return -EUNATCH; | 273 | kfree_skb(skb); |
274 | return NETDEV_TX_OK; | ||
274 | } | 275 | } |
275 | 276 | ||
276 | pr_debug("skbuff head:%lx data:%lx tail:%lx end:%lx\n", | 277 | pr_debug("skbuff head:%lx data:%lx tail:%lx end:%lx\n", |