summaryrefslogtreecommitdiffstats
path: root/fs/exec.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/exec.c')
-rw-r--r--fs/exec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/exec.c b/fs/exec.c
index 3e14ba25f678..1d6243d9f2b6 100644
--- a/fs/exec.c
+++ b/fs/exec.c
@@ -1911,7 +1911,7 @@ void set_dumpable(struct mm_struct *mm, int value)
1911 return; 1911 return;
1912 1912
1913 do { 1913 do {
1914 old = ACCESS_ONCE(mm->flags); 1914 old = READ_ONCE(mm->flags);
1915 new = (old & ~MMF_DUMPABLE_MASK) | value; 1915 new = (old & ~MMF_DUMPABLE_MASK) | value;
1916 } while (cmpxchg(&mm->flags, old, new) != old); 1916 } while (cmpxchg(&mm->flags, old, new) != old);
1917} 1917}