projects
/
platform
/
upstream
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ac67f18
)
qemu-cvs-gettimeofday
author
Ulrich Hecht
<uli@suse.de>
Tue, 14 Apr 2009 14:25:41 +0000
(16:25 +0200)
committer
hyokeun
<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
patch
|
blob
|
history
diff --git
a/linux-user/syscall.c
b/linux-user/syscall.c
index
ca06943
..
f120665
100644
(file)
--- a/
linux-user/syscall.c
+++ b/
linux-user/syscall.c
@@
-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))