Commit 4783c646 authored by Alan Cox's avatar Alan Cox Committed by Linus Torvalds

[PATCH] fix padding for 8139too

parent 27d0b52a
......@@ -1686,6 +1686,8 @@ static int rtl8139_start_xmit (struct sk_buff *skb, struct net_device *dev)
entry = tp->cur_tx % NUM_TX_DESC;
if (likely(len < TX_BUF_SIZE)) {
if (len < ETH_ZLEN)
memset(tp->tx_buf[entry], 0, ETH_ZLEN);
skb_copy_and_csum_dev(skb, tp->tx_buf[entry]);
dev_kfree_skb(skb);
} else {
......
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