patch-2.4.21 linux-2.4.21/drivers/net/7990.c
Next file: linux-2.4.21/drivers/net/8139cp.c
Previous file: linux-2.4.21/drivers/net/3c59x.c
Back to the patch index
Back to the overall index
-  Lines: 9
-  Date:
2003-06-13 07:51:34.000000000 -0700
-  Orig file: 
linux-2.4.20/drivers/net/7990.c
-  Orig date: 
2002-11-28 15:53:13.000000000 -0800
diff -urN linux-2.4.20/drivers/net/7990.c linux-2.4.21/drivers/net/7990.c
@@ -532,6 +532,8 @@
         ib->btx_ring [entry].length = (-len) | 0xf000;
         ib->btx_ring [entry].misc = 0;
     
+    	if(skb->len < ETH_ZLEN)
+    		memset((char *)&ib->tx_buf[entry][0], 0, ETH_ZLEN);
         memcpy ((char *)&ib->tx_buf [entry][0], skb->data, skblen);
     
         /* Now, give the packet to the lance */
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)