Messages in this thread Patch in this message | | | Date | Tue, 14 Jan 2003 13:45:55 +0100 | From | Roger Luethi <> | Subject | [PATCH][2.5] Fix via-rhine using skb_padto |
| |
This patch has already made it into 2.4.21pre3-ac4. Please apply.
--- linux-2.5.58/drivers/net/via-rhine.c.org Tue Jan 14 00:41:30 2003 +++ linux-2.5.58/drivers/net/via-rhine.c Tue Jan 14 13:24:14 2003 @@ -1239,6 +1239,12 @@ /* 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) && | |