aboutsummaryrefslogtreecommitdiff
path: root/linux-user/syscall.c
diff options
context:
space:
mode:
authorPeter Maydell <peter.maydell@linaro.org>2016-05-31 15:45:11 +0100
committerRiku Voipio <riku.voipio@linaro.org>2016-06-08 10:13:45 +0300
commit977d8241c10de4160a9377efd496395c98b7dee9 (patch)
tree594de0197d21096278df92f8975a9a288f709dd7 /linux-user/syscall.c
parentbadd3cd8805de3b5f8c76b6a00612ed62a71eff8 (diff)
downloadqemu-977d8241c10de4160a9377efd496395c98b7dee9.zip
qemu-977d8241c10de4160a9377efd496395c98b7dee9.tar.gz
qemu-977d8241c10de4160a9377efd496395c98b7dee9.tar.bz2
linux-user: Fix error conversion in 64-bit fadvise syscall
Fix a missing host-to-target errno conversion in the 64-bit fadvise syscall emulation. Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Reviewed-by: Laurent Vivier <laurent@vivier.eu> Signed-off-by: Riku Voipio <riku.voipio@linaro.org>
Diffstat (limited to 'linux-user/syscall.c')
-rw-r--r--linux-user/syscall.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/linux-user/syscall.c b/linux-user/syscall.c
index 5cff9f7..8f8d9db 100644
--- a/linux-user/syscall.c
+++ b/linux-user/syscall.c
@@ -10035,8 +10035,8 @@ abi_long do_syscall(void *cpu_env, int num, abi_long arg1,
default: break;
}
#endif
- ret = -posix_fadvise(arg1, arg2, arg3, arg4);
- break;
+ ret = -host_to_target_errno(posix_fadvise(arg1, arg2, arg3, arg4));
+ break;
#endif
#endif /* end of 64-bit ABI fadvise handling */