diff options
author | Ulrich Hecht <uli@suse.de> | 2009-04-14 16:25:41 +0200 |
---|---|---|
committer | Anas Nashif <anas.nashif@intel.com> | 2013-01-15 13:32:15 -0800 |
commit | 24adb9c0018228b64ca74be932e959d55d506df8 (patch) | |
tree | b87fb200a465691e1d4ae268ee0a40ce3be1a61c | |
parent | 91916433a383c3210732bf65efa343f93eed1b03 (diff) | |
download | qemu-24adb9c0018228b64ca74be932e959d55d506df8.tar.gz qemu-24adb9c0018228b64ca74be932e959d55d506df8.tar.bz2 qemu-24adb9c0018228b64ca74be932e959d55d506df8.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 05d48097f..edcc4c830 100644 --- a/linux-user/syscall.c +++ b/linux-user/syscall.c @@ -6285,6 +6285,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)) |