patch-2.4.21 linux-2.4.21/drivers/net/pcmcia/xircom_tulip_cb.c
Next file: linux-2.4.21/drivers/net/pcnet32.c
Previous file: linux-2.4.21/drivers/net/pcmcia/xircom_cb.c
Back to the patch index
Back to the overall index
- Lines: 15
- Date:
2003-06-13 07:51:35.000000000 -0700
- Orig file:
linux-2.4.20/drivers/net/pcmcia/xircom_tulip_cb.c
- Orig date:
2002-11-28 15:53:14.000000000 -0800
diff -urN linux-2.4.20/drivers/net/pcmcia/xircom_tulip_cb.c linux-2.4.21/drivers/net/pcmcia/xircom_tulip_cb.c
@@ -923,6 +923,14 @@
/* Calculate the next Tx descriptor entry. */
entry = tp->cur_tx % TX_RING_SIZE;
+ /* Seems to be needed even though the docs disagree */
+ if(skb->len < ETH_ZLEN)
+ {
+ skb = skb_padto(skb, ETH_ZLEN);
+ if(skb == NULL)
+ return 0;
+ }
+
tp->tx_skbuff[entry] = skb;
#ifdef CARDBUS
if (tp->chip_id == X3201_3) {
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)