From: françois romieu Date: Fri, 1 May 2015 20:14:38 +0000 (+0200) Subject: via-rhine: commit receive buffer address before descriptor status update. X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=e45af497950a89459a0c4b13ffd91e1729fffef4;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git via-rhine: commit receive buffer address before descriptor status update. Signed-off-by: Francois Romieu Signed-off-by: David S. Miller --- diff --git a/drivers/net/ethernet/via/via-rhine.c b/drivers/net/ethernet/via/via-rhine.c index de2850497c09..88b45c7a35e0 100644 --- a/drivers/net/ethernet/via/via-rhine.c +++ b/drivers/net/ethernet/via/via-rhine.c @@ -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); }