diff options
author | Andrew Morton <akpm@linux-foundation.org> | 2023-10-18 23:32:58 +0200 |
---|---|---|
committer | Andrew Morton <akpm@linux-foundation.org> | 2023-10-18 23:32:58 +0200 |
commit | 5ef8f1b2b4d9bd02e4104b9255351fb9279b1b4e (patch) | |
tree | 415dc49e56338e498bff9a3b0c5b99b049890e14 /mm/mempolicy.c | |
parent | mm/ksm: document pages_skipped sysfs knob (diff) | |
parent | selftests/clone3: Fix broken test under !CONFIG_TIME_NS (diff) | |
download | linux-5ef8f1b2b4d9bd02e4104b9255351fb9279b1b4e.tar.xz linux-5ef8f1b2b4d9bd02e4104b9255351fb9279b1b4e.zip |
Merge mm-hotfixes-stable into mm-stable to pick up depended-upon changes.
Diffstat (limited to 'mm/mempolicy.c')
-rw-r--r-- | mm/mempolicy.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/mm/mempolicy.c b/mm/mempolicy.c index abd94f4c7f6b..38a47fa33ef4 100644 --- a/mm/mempolicy.c +++ b/mm/mempolicy.c @@ -1543,8 +1543,10 @@ SYSCALL_DEFINE4(set_mempolicy_home_node, unsigned long, start, unsigned long, le * the home node for vmas we already updated before. */ old = vma_policy(vma); - if (!old) + if (!old) { + prev = vma; continue; + } if (old->mode != MPOL_BIND && old->mode != MPOL_PREFERRED_MANY) { err = -EOPNOTSUPP; break; |