Commit 3cd1b5e8 authored by Alan Cox's avatar Alan Cox Committed by Linus Torvalds

[PATCH] padto - fix epic100 using skb_padto

parent 9a648288
......@@ -974,6 +974,12 @@ static int epic_start_xmit(struct sk_buff *skb, struct net_device *dev)
int entry, free_count;
u32 ctrl_word;
long flags;
if (skb->len < ETH_ZLEN) {
skb = skb_padto(skb, ETH_ZLEN);
if (skb == NULL)
return 0;
}
/* Caution: the write order is important here, set the field with the
"ownership" bit last. */
......
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