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

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)