Message ID | 20200416152829.790561-2-laurent@vivier.eu |
---|---|
State | New |
Headers | show |
Series | [PULL,1/1] linux-user/syscall.c: add target-to-host mapping for epoll_create1() | expand |
diff --git a/linux-user/syscall.c b/linux-user/syscall.c index 674f70e70a56..05f03919ff07 100644 --- a/linux-user/syscall.c +++ b/linux-user/syscall.c @@ -12012,7 +12012,7 @@ static abi_long do_syscall1(void *cpu_env, int num, abi_long arg1, #endif #if defined(TARGET_NR_epoll_create1) && defined(CONFIG_EPOLL_CREATE1) case TARGET_NR_epoll_create1: - return get_errno(epoll_create1(arg1)); + return get_errno(epoll_create1(target_to_host_bitmask(arg1, fcntl_flags_tbl))); #endif #if defined(TARGET_NR_epoll_ctl) case TARGET_NR_epoll_ctl: