Merge tag 'jfs-4.15' of git://github.com/kleikamp/linux-shaggy
[linux] / fs / exec.c
index 3e14ba2..1d6243d 100644 (file)
--- a/fs/exec.c
+++ b/fs/exec.c
@@ -1911,7 +1911,7 @@ void set_dumpable(struct mm_struct *mm, int value)
                return;
 
        do {
-               old = ACCESS_ONCE(mm->flags);
+               old = READ_ONCE(mm->flags);
                new = (old & ~MMF_DUMPABLE_MASK) | value;
        } while (cmpxchg(&mm->flags, old, new) != old);
 }