summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Hecht <uli@suse.de>2009-04-14 16:25:41 +0200
committerYury Usishchev <y.usishchev@samsung.com>2014-12-10 13:47:57 +0300
commitf16053b719c6c720375263558966ebc9364a3aec (patch)
tree5f86636bb489aaa6368e249c196b77b0d6f471ec
parent627d4a022152ca0bed14df7288822a9ec0c19a68 (diff)
downloadqemu-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.c2
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))