]> git.karo-electronics.de Git - linux-beck.git/commitdiff
via-rhine: commit receive buffer address before descriptor status update.
authorfrançois romieu <romieu@fr.zoreil.com>
Fri, 1 May 2015 20:14:38 +0000 (22:14 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 4 May 2015 04:18:26 +0000 (00:18 -0400)
Signed-off-by: Francois Romieu <romieu@fr.zoreil.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/via/via-rhine.c

index de2850497c09d87a6e7131e12a82ce68af702dd5..88b45c7a35e02217b934536433823a7713ba5c7b 100644 (file)
@@ -2075,6 +2075,7 @@ static int rhine_rx(struct net_device *dev, int limit)
                                break;
                        }
                        rp->rx_ring[entry].addr = cpu_to_le32(rp->rx_skbuff_dma[entry]);
+                       dma_wmb();
                }
                rp->rx_ring[entry].rx_status = cpu_to_le32(DescOwn);
        }