Commit 6e0f1eff authored by Alan Cox's avatar Alan Cox Committed by Linus Torvalds

[PATCH] fix ethernet padding on ni65

parent e07ab90e
...@@ -1145,6 +1145,8 @@ static int ni65_send_packet(struct sk_buff *skb, struct net_device *dev) ...@@ -1145,6 +1145,8 @@ static int ni65_send_packet(struct sk_buff *skb, struct net_device *dev)
memcpy((char *) p->tmdbounce[p->tmdbouncenum] ,(char *)skb->data, memcpy((char *) p->tmdbounce[p->tmdbouncenum] ,(char *)skb->data,
(skb->len > T_BUF_SIZE) ? T_BUF_SIZE : skb->len); (skb->len > T_BUF_SIZE) ? T_BUF_SIZE : skb->len);
if (len > skb->len)
memset((char *)p->tmdbounce[p->tmdbouncenum]+skb->len, 0, len-skb->len);
dev_kfree_skb (skb); dev_kfree_skb (skb);
save_flags(flags); save_flags(flags);
......
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