summaryrefslogtreecommitdiffstats
path: root/mm/mempolicy.c
diff options
context:
space:
mode:
authorAndrew Morton <akpm@linux-foundation.org>2023-10-18 23:32:58 +0200
committerAndrew Morton <akpm@linux-foundation.org>2023-10-18 23:32:58 +0200
commit5ef8f1b2b4d9bd02e4104b9255351fb9279b1b4e (patch)
tree415dc49e56338e498bff9a3b0c5b99b049890e14 /mm/mempolicy.c
parentmm/ksm: document pages_skipped sysfs knob (diff)
parentselftests/clone3: Fix broken test under !CONFIG_TIME_NS (diff)
downloadlinux-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.c4
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;