Commit 5657cc21 authored by Alan Cox's avatar Alan Cox Committed by Linus Torvalds

[PATCH] fix padding on de600

parent e8588f9a
...@@ -187,6 +187,7 @@ static int de600_start_xmit(struct sk_buff *skb, struct net_device *dev) ...@@ -187,6 +187,7 @@ static int de600_start_xmit(struct sk_buff *skb, struct net_device *dev)
int len; int len;
int tickssofar; int tickssofar;
u8 *buffer = skb->data; u8 *buffer = skb->data;
int i;
if (free_tx_pages <= 0) { /* Do timeouts, to avoid hangs. */ if (free_tx_pages <= 0) { /* Do timeouts, to avoid hangs. */
tickssofar = jiffies - dev->trans_start; tickssofar = jiffies - dev->trans_start;
...@@ -228,8 +229,10 @@ static int de600_start_xmit(struct sk_buff *skb, struct net_device *dev) ...@@ -228,8 +229,10 @@ static int de600_start_xmit(struct sk_buff *skb, struct net_device *dev)
} }
de600_setup_address(transmit_from, RW_ADDR); de600_setup_address(transmit_from, RW_ADDR);
for ( ; len > 0; --len, ++buffer) for (i = 0; i < skb->len ; ++i, ++buffer)
de600_put_byte(*buffer); de600_put_byte(*buffer);
for (; i < len; ++i)
de600_put_byte(0);
if (free_tx_pages-- == TX_PAGES) { /* No transmission going on */ if (free_tx_pages-- == TX_PAGES) { /* No transmission going on */
dev->trans_start = jiffies; dev->trans_start = jiffies;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment