pager_get_path: Append \0 to path

Change-Id: Iaabd89a649bb20b37b35cd345da0f468fd5dd0b5
This commit is contained in:
Masamichi Takagi
2018-07-03 15:16:48 +09:00
parent ae09d979b6
commit 992705d465
2 changed files with 3 additions and 1 deletions

View File

@ -122,6 +122,8 @@ int devobj_create(int fd, size_t len, off_t off, struct memobj **objp, int *maxp
ihk_mc_syscall_arg4(&ctx) = virt_to_phys(&result);
ihk_mc_syscall_arg5(&ctx) = prot | populate_flags;
memset(&result, 0, sizeof(result));
error = syscall_generic_forwarding(__NR_mmap, &ctx);
if (error) {
kprintf("%s: error: fd: %d, len: %lu, off: %lu map failed.\n",