Commit 7d5dc678 authored by Alan Cox's avatar Alan Cox Committed by Linus Torvalds

[PATCH] padto - fix depca using skb_padto

parent aca71ead
...@@ -862,6 +862,12 @@ static int depca_start_xmit(struct sk_buff *skb, struct net_device *dev) ...@@ -862,6 +862,12 @@ static int depca_start_xmit(struct sk_buff *skb, struct net_device *dev)
if (skb->len < 1) if (skb->len < 1)
goto out; goto out;
if (skb->len < ETH_ZLEN) {
skb = skb_padto(skb, ETH_ZLEN);
if (skb == NULL)
goto out;
}
netif_stop_queue(dev); netif_stop_queue(dev);
if (TX_BUFFS_AVAIL) { /* Fill in a Tx ring entry */ if (TX_BUFFS_AVAIL) { /* Fill in a Tx ring entry */
......
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