]> git.proxmox.com Git - mirror_qemu.git/commit
linux-user: fix error propagation in clock_gettime
authorMax Filippov <jcmvbkbc@gmail.com>
Sun, 1 Apr 2018 20:14:04 +0000 (13:14 -0700)
committerMax Filippov <jcmvbkbc@gmail.com>
Sun, 1 Apr 2018 21:22:04 +0000 (14:22 -0700)
commitb9f9908e2ddd167eb88ce3457953a30f18d2a7aa
treedfc2c945824e2f8c1b8d71e8a09077520e6b5fd1
parenta3da8be5126be0d17e8ebc76655f185aeb647f7a
linux-user: fix error propagation in clock_gettime

host_to_target_timespec may return error if target address could not be
locked, but it is ignored.
Propagate return value of host_to_target_timespec to the caller of
clock_gettime.

Reviewed-by: Laurent Vivier <laurent@vivier.eu>
Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
linux-user/syscall.c