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

Next file: linux-2.4.21/drivers/net/skfp/h/skfbi.h
Previous file: linux-2.4.21/drivers/net/sk98lin/skxmac2.c
Back to the patch index
Back to the overall index

diff -urN linux-2.4.20/drivers/net/sk_g16.c linux-2.4.21/drivers/net/sk_g16.c
@@ -1256,6 +1256,7 @@
 {
     struct priv *p = (struct priv *) dev->priv;
     struct tmd *tmdp;
+    static char pad[64];
 
     PRINTK2(("## %s: SK_send_packet() called, CSR0 %#04x.\n", 
 	    SK_NAME, SK_read_reg(CSR0)));
@@ -1280,6 +1281,8 @@
 	/* Copy data into dual ported ram */
 
 	memcpy_toio((tmdp->u.buffer & 0x00ffffff), skb->data, skb->len);
+	if(len != skb->len)
+		memcpy_toio((tmdp->u.buffer & 0x00ffffff) + sb->len, pad, len-skb->len);
 
 	writew(-len, &tmdp->blen);            /* set length to transmit */
 

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