patch-2.4.21 linux-2.4.21/drivers/net/sgiseeq.c

Next file: linux-2.4.21/drivers/net/shaper.c
Previous file: linux-2.4.21/drivers/net/seeq8005.c
Back to the patch index
Back to the overall index

diff -urN linux-2.4.20/drivers/net/sgiseeq.c linux-2.4.21/drivers/net/sgiseeq.c
@@ -537,6 +537,8 @@
 	 *    added this new entry and restarted it.
 	 */
 	memcpy((char *)(long)td->buf_vaddr, skb->data, skblen);
+	if(len != skblen)
+		memset((char *)(long)td->buf_vaddr + skb->len, 0, len-skblen);
 	td->tdma.cntinfo = (len & HPCDMA_BCNT) |
 	                   (HPCDMA_XIU | HPCDMA_EOXP | HPCDMA_XIE | HPCDMA_EOX);
 	if (sp->tx_old != sp->tx_new) {

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)