summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Hecht <uli@suse.de>2009-04-14 16:25:41 +0200
committerJunfeng Dong <junfeng.dong@intel.com>2013-11-19 18:17:39 +0800
commit3bc09a22c85e7a30e947607ae748ea9b0ab9a6d7 (patch)
tree4ec090ecc94e3724be9e28cb203a1b2cda20b013
parentf80250e110a9692f9d538ec8663302184b9eae88 (diff)
downloadqemu-3bc09a22c85e7a30e947607ae748ea9b0ab9a6d7.tar.gz
qemu-3bc09a22c85e7a30e947607ae748ea9b0ab9a6d7.tar.bz2
qemu-3bc09a22c85e7a30e947607ae748ea9b0ab9a6d7.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 23954c13d..709c167f9 100644
--- a/linux-user/syscall.c
+++ b/linux-user/syscall.c
@@ -6236,6 +6236,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))