We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ca2b1a5 commit 81e9d6fCopy full SHA for 81e9d6f
fs/aio.c
@@ -361,6 +361,9 @@ static int aio_ring_mremap(struct vm_area_struct *vma)
361
spin_lock(&mm->ioctx_lock);
362
rcu_read_lock();
363
table = rcu_dereference(mm->ioctx_table);
364
+ if (!table)
365
+ goto out_unlock;
366
+
367
for (i = 0; i < table->nr; i++) {
368
struct kioctx *ctx;
369
@@ -374,6 +377,7 @@ static int aio_ring_mremap(struct vm_area_struct *vma)
374
377
}
375
378
376
379
380
+out_unlock:
381
rcu_read_unlock();
382
spin_unlock(&mm->ioctx_lock);
383
return res;
0 commit comments