Index: linux-user/syscall.c =================================================================== --- linux-user/syscall.c (revision 5518) +++ linux-user/syscall.c (working copy) @@ -1934,6 +1934,7 @@ __put_user(host_msginfo->msgtql, &target_msginfo->msgtql); __put_user(host_msginfo->msgseg, &target_msginfo->msgseg); unlock_user_struct(target_msginfo, target_addr, 1); + return 0; } static inline abi_long do_msgctl(int msgid, int cmd, abi_long ptr)