diff options
Diffstat (limited to 'fs/aio.c')
-rw-r--r-- | fs/aio.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -512,7 +512,7 @@ static int aio_setup_ring(struct kioctx *ctx) | |||
512 | 512 | ||
513 | ctx->mmap_base = do_mmap_pgoff(ctx->aio_ring_file, 0, ctx->mmap_size, | 513 | ctx->mmap_base = do_mmap_pgoff(ctx->aio_ring_file, 0, ctx->mmap_size, |
514 | PROT_READ | PROT_WRITE, | 514 | PROT_READ | PROT_WRITE, |
515 | MAP_SHARED, 0, &unused); | 515 | MAP_SHARED, 0, &unused, NULL); |
516 | up_write(&mm->mmap_sem); | 516 | up_write(&mm->mmap_sem); |
517 | if (IS_ERR((void *)ctx->mmap_base)) { | 517 | if (IS_ERR((void *)ctx->mmap_base)) { |
518 | ctx->mmap_size = 0; | 518 | ctx->mmap_size = 0; |