jme: Prevent possible read re-order error
[jme.git] / jme.c
diff --git a/jme.c b/jme.c
index 0ea0da3..095f899 100644 (file)
--- a/jme.c
+++ b/jme.c
@@ -989,6 +989,7 @@ jme_process_receive(struct jme_adapter *jme, int limit)
                        goto out;
                --limit;
 
+               rmb();
                desccnt = rxdesc->descwb.desccnt & RXWBDCNT_DCNT;
 
                if (unlikely(desccnt > 1 ||