aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Maydell <peter.maydell@linaro.org>2016-05-31 15:29:48 +0100
committerPeter Maydell <peter.maydell@linaro.org>2016-06-06 17:20:34 +0100
commit6012ea792d3b55231a657a9ca0f201faf012e0ce (patch)
tree23c3f74684fe7713b31ac4349ddde95e75f7149d
parentae0d8cbe3e07b6f7e0dc38ae8d34fbb50cfffadb (diff)
downloadqemu-arm-6012ea792d3b55231a657a9ca0f201faf012e0ce.tar.gz
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>
-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 638b455e3e..31a9484ad5 100644
--- a/linux-user/syscall.c
+++ b/linux-user/syscall.c
@@ -9394,8 +9394,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 */