Commit 503c26ab authored by Alan Cox's avatar Alan Cox Committed by Linus Torvalds

[PATCH] fix padding for 3c523

parent a92cb452
...@@ -1120,9 +1120,12 @@ static int elmc_send_packet(struct sk_buff *skb, struct net_device *dev) ...@@ -1120,9 +1120,12 @@ static int elmc_send_packet(struct sk_buff *skb, struct net_device *dev)
netif_stop_queue(dev); netif_stop_queue(dev);
memcpy((char *) p->xmit_cbuffs[p->xmit_count], (char *) (skb->data), skb->len);
len = (ETH_ZLEN < skb->len) ? skb->len : ETH_ZLEN; len = (ETH_ZLEN < skb->len) ? skb->len : ETH_ZLEN;
if (len != skb->len)
memset((char *) p->xmit_cbuffs[p->xmit_count], 0, ETH_ZLEN);
memcpy((char *) p->xmit_cbuffs[p->xmit_count], (char *) (skb->data), skb->len);
#if (NUM_XMIT_BUFFS == 1) #if (NUM_XMIT_BUFFS == 1)
#ifdef NO_NOPCOMMANDS #ifdef NO_NOPCOMMANDS
p->xmit_buffs[0]->size = TBD_LAST | len; p->xmit_buffs[0]->size = TBD_LAST | 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