[2.5] Fix via-rhine using skb_padto
PATCH 1/1 [2.5] Fix via-rhine using skb_padto
This patch has already made it into 2.4.21pre3-ac4. Please apply.
drivers/net/via-rhine.c renamed from drivers/net/via-rhine.c.org +6 -0
@@ -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) &&