summaryrefslogtreecommitdiff
path: root/mm/mempolicy.c
diff options
context:
space:
mode:
authorAndrew Morton <akpm@linux-foundation.org>2023-10-18 14:32:58 -0700
committerAndrew Morton <akpm@linux-foundation.org>2023-10-18 14:32:58 -0700
commit5ef8f1b2b4d9bd02e4104b9255351fb9279b1b4e (patch)
tree415dc49e56338e498bff9a3b0c5b99b049890e14 /mm/mempolicy.c
parentb0540208a59e11ab55c9b857bf521d8846e515bf (diff)
parentfc7f04dc23db50206bee7891516ed4726c3f64cf (diff)
downloadlwn-5ef8f1b2b4d9bd02e4104b9255351fb9279b1b4e.tar.gz
lwn-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;