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

[PATCH] fix sun3_82586 using skb_padto

parent fbc107dc
......@@ -1010,8 +1010,12 @@ static int sun3_82586_send_packet(struct sk_buff *skb, struct net_device *dev)
else
#endif
{
len = skb->len;
if (len < ETH_ZLEN) {
memset((char *)p->xmit_cbuffs[p->xmit_count], 0, ETH_ZLEN);
len = ETH_ZLEN;
}
memcpy((char *)p->xmit_cbuffs[p->xmit_count],(char *)(skb->data),skb->len);
len = (ETH_ZLEN < skb->len) ? skb->len : ETH_ZLEN;
#if (NUM_XMIT_BUFFS == 1)
# ifdef NO_NOPCOMMANDS
......
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