patch-2.4.21 linux-2.4.21/drivers/net/de600.c
Next file: linux-2.4.21/drivers/net/de620.c
Previous file: linux-2.4.21/drivers/net/de4x5.c
Back to the patch index
Back to the overall index
- Lines: 20
- Date:
2003-06-13 07:51:34.000000000 -0700
- Orig file:
linux-2.4.20/drivers/net/de600.c
- Orig date:
2002-11-28 15:53:13.000000000 -0800
diff -urN linux-2.4.20/drivers/net/de600.c linux-2.4.21/drivers/net/de600.c
@@ -403,6 +403,7 @@
int len;
int tickssofar;
byte *buffer = skb->data;
+ int i;
if (free_tx_pages <= 0) { /* Do timeouts, to avoid hangs. */
tickssofar = jiffies - dev->trans_start;
@@ -447,8 +448,10 @@
#endif
de600_setup_address(transmit_from, RW_ADDR);
- for ( ; len > 0; --len, ++buffer)
+ for (i = 0; i < skb->len ; ++i, ++buffer)
de600_put_byte(*buffer);
+ for (; i < len; ++i)
+ de600_put_byte(0);
if (free_tx_pages-- == TX_PAGES) { /* No transmission going on */
dev->trans_start = jiffies;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)