linux-user/syscall: Fix missing target_to_host_timespec64() check
commite4ce178b6153205c2e17a9b719287c83e1e67a72
authorAlistair Francis <alistair.francis@wdc.com>
Tue, 3 Nov 2020 19:48:44 +0000 (3 11:48 -0800)
committerLaurent Vivier <laurent@vivier.eu>
Wed, 4 Nov 2020 21:27:03 +0000 (4 22:27 +0100)
treed665cc6d7f405c165e1367b62a34525f03a4d841
parent36d2dbc72df682df49c94a7a55f1e483f4f029a2
linux-user/syscall: Fix missing target_to_host_timespec64() check

Coverity pointed out (CID 1432339) that target_to_host_timespec64() can
fail with -TARGET_EFAULT but we never check the return value. This patch
checks the return value and handles the error.

Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-Id: <cad74fae734d2562746b94acd9c34b00081c89bf.1604432881.git.alistair.francis@wdc.com>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
linux-user/syscall.c