diff options
author | Ulrich Hecht <uli@suse.de> | 2009-04-14 16:25:41 +0200 |
---|---|---|
committer | Yury Usishchev <y.usishchev@samsung.com> | 2014-12-10 13:47:57 +0300 |
commit | f16053b719c6c720375263558966ebc9364a3aec (patch) | |
tree | 5f86636bb489aaa6368e249c196b77b0d6f471ec | |
parent | 627d4a022152ca0bed14df7288822a9ec0c19a68 (diff) | |
download | qemu-f16053b719c6c720375263558966ebc9364a3aec.tar.gz qemu-f16053b719c6c720375263558966ebc9364a3aec.tar.bz2 qemu-f16053b719c6c720375263558966ebc9364a3aec.zip |
qemu-cvs-gettimeofday
No clue what this is for.
-rw-r--r-- | linux-user/syscall.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/linux-user/syscall.c b/linux-user/syscall.c index 4a2bdcbf3..0ea86cbb8 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)) |