Commit 9b18b619 authored by Roger Luethi's avatar Roger Luethi Committed by Linus Torvalds

[PATCH] Fix via-rhine using skb_padto

This patch has already made it into 2.4.21pre3-ac4. Please apply.
parent 4dd94cac
......@@ -1239,6 +1239,12 @@ static int via_rhine_start_tx(struct sk_buff *skb, struct net_device *dev)
/* Calculate the next Tx descriptor entry. */
entry = np->cur_tx % TX_RING_SIZE;
if (skb->len < ETH_ZLEN) {
skb = skb_padto(skb, ETH_ZLEN);
if (skb == NULL)
return 0;
}
np->tx_skbuff[entry] = skb;
if ((np->drv_flags & ReqTxAlign) &&
......
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