From: Patrick McHardy Date: Fri, 12 Jun 2009 05:34:37 +0000 (+0000) Subject: net: fix network drivers ndo_start_xmit() return values (part 7) X-Git-Tag: MMI-PSA29.97-13-9~27597^2~99 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=81fbbf60408ad6b98ff72120de948cb7fd2498d0;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git 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 Signed-off-by: David S. Miller --- 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) printk("%s:No lecd attached\n", dev->name); dev->stats.tx_errors++; netif_stop_queue(dev); - return -EUNATCH; + kfree_skb(skb); + return NETDEV_TX_OK; } pr_debug("skbuff head:%lx data:%lx tail:%lx end:%lx\n",