net: fix network driver ndo_start_xmit() return values (part 1)
authorPatrick McHardy <kaber@trash.net>
Fri, 12 Jun 2009 03:00:35 +0000 (03:00 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sat, 13 Jun 2009 08:18:32 +0000 (01:18 -0700)
commit3790c8cdb99f23824b23cb16df608281b335ee91
treec437f801a709cefcf1210eb1e9f8306e52f42ca6
parentda6782927de809d9d427bd4bd6a4024243e41f13
net: fix network driver ndo_start_xmit() return values (part 1)

Fix up drivers that return an errno value to qdisc_restart(), causing
qdisc_restart() to print a warning and requeue/retransmit the skb.

- xpnet: memory allocation error, intention is to drop
- ethoc: oversized packet, packet must be dropped
- ibmlana: skb freed: use after free
- rrunner: skb freed: use after free

Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/misc/sgi-xp/xpnet.c
drivers/net/ethoc.c
drivers/net/ibmlana.c
drivers/net/rrunner.c