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

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

diff -urN linux-2.4.20/drivers/net/ni65.c linux-2.4.21/drivers/net/ni65.c
@@ -1113,6 +1113,8 @@
 
 			memcpy((char *) p->tmdbounce[p->tmdbouncenum] ,(char *)skb->data,
 							 (skb->len > T_BUF_SIZE) ? T_BUF_SIZE : skb->len);
+			if(len > skb->len)
+				memset((char *)p->tmdbounce[p->tmdbouncenum]+skb->len, 0, len-skb->len);
 			dev_kfree_skb (skb);
 
 			save_flags(flags);

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