Skip to contentSkip to conversation

net: sh_eth: fix receive desciptor loop

PATCH In review Yoshihiro Shimoda 1 participant 1 message May 25, 2009

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 3/5 net: sh_eth: fix receive desciptor loop

Fix the problem that this driver not update rxdesc in sh_eth_rx.

---
 drivers/net/sh_eth.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
drivers/net/sh_eth.c +1 -0
index eb76835..728c419 100644
@@ -536,6 +536,7 @@ static int sh_eth_rx(struct net_device *ndev)
 		}
 		rxdesc->status |= cpu_to_edmac(mdp, RD_RACT);
 		entry = (++mdp->cur_rx) % RX_RING_SIZE;
+		rxdesc = &mdp->rx_ring[entry];
 	}
 
 	/* Refill the Rx ring buffers. */
Signature · 1 line
1.5.5