From: Yoshihiro Shimoda Date: Sun, 24 May 2009 23:53:40 +0000 (+0000) Subject: net: sh_eth: fix receive desciptor loop X-Git-Tag: v2.6.31-rc1~330^2~284 X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=862df49750e7ca9369c04d8d8105b3cc5d976e0d;p=~shefty%2Frdma-dev.git net: sh_eth: fix receive desciptor loop Fix the problem that this driver not update rxdesc in sh_eth_rx. Signed-off-by: Yoshihiro Shimoda Signed-off-by: Nobuhiro Iwamatsu Signed-off-by: David S. Miller --- diff --git a/drivers/net/sh_eth.c b/drivers/net/sh_eth.c index eb768357c78..728c4196830 100644 --- a/drivers/net/sh_eth.c +++ b/drivers/net/sh_eth.c @@ -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. */