Skip to content

Commit fde591d

Browse files
ljskernelakpm00
authored andcommitted
mm/oom_kill.c: fix inverted check
Fix an incorrect logic conversion in process_mrelease(). Link: https://lkml.kernel.org/r/3b7f0faf-4dbc-4d67-8a71-752fbcdf0906@lucifer.local Fixes: 12e423b ("mm: convert core mm to mm_flags_*() accessors") Signed-off-by: Lorenzo Stoakes <lorenzo.stoakes@oracle.com> Reported-by: Chris Mason <clm@meta.com> Closes: https://lkml.kernel.org/r/c2e28e27-d84b-4671-8784-de5fe0d14f41@lucifer.local Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
1 parent f8a0151 commit fde591d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

mm/oom_kill.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1257,7 +1257,7 @@ SYSCALL_DEFINE2(process_mrelease, int, pidfd, unsigned int, flags)
12571257
* Check MMF_OOM_SKIP again under mmap_read_lock protection to ensure
12581258
* possible change in exit_mmap is seen
12591259
*/
1260-
if (mm_flags_test(MMF_OOM_SKIP, mm) && !__oom_reap_task_mm(mm))
1260+
if (!mm_flags_test(MMF_OOM_SKIP, mm) && !__oom_reap_task_mm(mm))
12611261
ret = -EAGAIN;
12621262
mmap_read_unlock(mm);
12631263

0 commit comments

Comments
 (0)