Merge branch 'mm-hotfixes-stable' into mm-stable

To pick up depended-upon changes
This commit is contained in:
Andrew Morton 2023-02-10 15:34:48 -08:00
commit f67d6b2664
18 changed files with 102 additions and 45 deletions

View file

@ -361,6 +361,9 @@ static int aio_ring_mremap(struct vm_area_struct *vma)
spin_lock(&mm->ioctx_lock);
rcu_read_lock();
table = rcu_dereference(mm->ioctx_table);
if (!table)
goto out_unlock;
for (i = 0; i < table->nr; i++) {
struct kioctx *ctx;
@ -374,6 +377,7 @@ static int aio_ring_mremap(struct vm_area_struct *vma)
}
}
out_unlock:
rcu_read_unlock();
spin_unlock(&mm->ioctx_lock);
return res;