add lunaix dynamic linker as submodule
[lunaix-os.git] / lunaix-os / kernel / mm / mmap.c
index fcdd91c27d899b9358b80c1ca89ce178575d7fd2..8a4c9bc6af509a653477f61833b389b2ce9e549d 100644 (file)
@@ -331,6 +331,7 @@ __DEFINE_LXSYSCALL3(void*, sys_mmap, void*, addr, size_t, length, va_list, lst)
 
     struct mmap_param param = { .flags = options,
                                 .mlen = ROUNDUP(length, PG_SIZE),
+                                .flen = length,
                                 .offset = offset,
                                 .type = REGION_TYPE_GENERAL,
                                 .proct = proct,