summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Hecht <uli@suse.de>2009-04-14 14:25:41 (GMT)
committerYury Usishchev <y.usishchev@samsung.com>2014-12-10 10:47:57 (GMT)
commitf16053b719c6c720375263558966ebc9364a3aec (patch)
tree5f86636bb489aaa6368e249c196b77b0d6f471ec
parent627d4a022152ca0bed14df7288822a9ec0c19a68 (diff)
downloadqemu-f16053b719c6c720375263558966ebc9364a3aec.zip
qemu-f16053b719c6c720375263558966ebc9364a3aec.tar.gz
qemu-f16053b719c6c720375263558966ebc9364a3aec.tar.bz2
qemu-cvs-gettimeofday
No clue what this is for.
-rw-r--r--linux-user/syscall.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/linux-user/syscall.c b/linux-user/syscall.c
index 4a2bdcb..0ea86cb 100644
--- a/linux-user/syscall.c
+++ b/linux-user/syscall.c
@@ -6666,6 +6666,8 @@ abi_long do_syscall(void *cpu_env, int num, abi_long arg1,
case TARGET_NR_gettimeofday:
{
struct timeval tv;
+ if(copy_from_user_timeval(&tv, arg1))
+ goto efault;
ret = get_errno(gettimeofday(&tv, NULL));
if (!is_error(ret)) {
if (copy_to_user_timeval(arg1, &tv))