]> git.ipfire.org Git - thirdparty/linux.git/blobdiff - fs/aio.c
Merge tag 'x86_shstk_for_6.6-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git...
[thirdparty/linux.git] / fs / aio.c
index b3174da80ff68d37d32e3939e518a77c9b5ae332..a4c2a6bac72ce9976b6b0ea20b1d9213cc4c2af8 100644 (file)
--- a/fs/aio.c
+++ b/fs/aio.c
@@ -558,7 +558,7 @@ static int aio_setup_ring(struct kioctx *ctx, unsigned int nr_events)
 
        ctx->mmap_base = do_mmap(ctx->aio_ring_file, 0, ctx->mmap_size,
                                 PROT_READ | PROT_WRITE,
-                                MAP_SHARED, 0, &unused, NULL);
+                                MAP_SHARED, 0, 0, &unused, NULL);
        mmap_write_unlock(mm);
        if (IS_ERR((void *)ctx->mmap_base)) {
                ctx->mmap_size = 0;