Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next
[sfrench/cifs-2.6.git] / net / ipv4 / inet_fragment.c
index 7f3ef5c287a10d107577377db2718b676949b021..26a3d0315728ed2b16ca46080a3546668100bc8e 100644 (file)
@@ -164,7 +164,7 @@ static void inet_frag_worker(struct work_struct *work)
 
        local_bh_disable();
 
-       for (i = ACCESS_ONCE(f->next_bucket); budget; --budget) {
+       for (i = READ_ONCE(f->next_bucket); budget; --budget) {
                evicted += inet_evict_bucket(f, &f->hash[i]);
                i = (i + 1) & (INETFRAGS_HASHSZ - 1);
                if (evicted > INETFRAGS_EVICT_MAX)