Commit aca71ead authored by Alan Cox's avatar Alan Cox Committed by Linus Torvalds

[PATCH] padto - fix declance using skb_padto

parent 1f1c31e0
......@@ -869,7 +869,14 @@ static int lance_start_xmit(struct sk_buff *skb, struct net_device *dev)
skblen = skb->len;
len = (skblen <= ETH_ZLEN) ? ETH_ZLEN : skblen;
len = skblen;
if (len < ETH_ZLEN) {
skb = skb_padto(skb, ETH_ZLEN);
if (skb == NULL)
return 0;
len = ETH_ZLEN;
}
lp->stats.tx_bytes += len;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment