qemu-cvs-gettimeofday
authorUlrich Hecht <uli@suse.de>
Tue, 14 Apr 2009 14:25:41 +0000 (16:25 +0200)
committerhyokeun <hyokeun.jeon@samsung.com>
Tue, 6 Sep 2016 06:55:30 +0000 (15:55 +0900)
No clue what this is for.

linux-user/syscall.c

index ca06943..f120665 100644 (file)
@@ -8534,6 +8534,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))