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>
This commit is contained in:
parent
badd3cd880
commit
977d8241c1
@ -10035,8 +10035,8 @@ abi_long do_syscall(void *cpu_env, int num, abi_long arg1,
|
|||||||
default: break;
|
default: break;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
ret = -posix_fadvise(arg1, arg2, arg3, arg4);
|
ret = -host_to_target_errno(posix_fadvise(arg1, arg2, arg3, arg4));
|
||||||
break;
|
break;
|
||||||
#endif
|
#endif
|
||||||
#endif /* end of 64-bit ABI fadvise handling */
|
#endif /* end of 64-bit ABI fadvise handling */
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user