fbc8207b73
Update to qemu 3.1.0-rc5. Is almost certainly the last rc, so should be same as 3.1.0 final. Putting into devel project 'early' because of SLE and Leap needs, not to get into Factory early. Look for the final 3.1 within a week. OBS-URL: https://build.opensuse.org/request/show/655897 OBS-URL: https://build.opensuse.org/package/show/Virtualization/qemu?expand=0&rev=433
28 lines
941 B
Diff
28 lines
941 B
Diff
From 4644946c19f00b9f1edbfe64d91e2604d89df3ed Mon Sep 17 00:00:00 2001
|
|
From: Ulrich Hecht <uli@suse.de>
|
|
Date: Tue, 14 Apr 2009 16:25:41 +0200
|
|
Subject: [PATCH] qemu-cvs-gettimeofday
|
|
|
|
No clue what this is for.
|
|
|
|
[BR: minor edits to pass qemu's checkpatch script]
|
|
Signed-off-by: Bruce Rogers <brogers@suse.com>
|
|
---
|
|
linux-user/syscall.c | 3 +++
|
|
1 file changed, 3 insertions(+)
|
|
|
|
diff --git a/linux-user/syscall.c b/linux-user/syscall.c
|
|
index 280137da8c..0f6ce7231a 100644
|
|
--- a/linux-user/syscall.c
|
|
+++ b/linux-user/syscall.c
|
|
@@ -8116,6 +8116,9 @@ static abi_long do_syscall1(void *cpu_env, int num, abi_long arg1,
|
|
case TARGET_NR_gettimeofday:
|
|
{
|
|
struct timeval tv;
|
|
+ if (copy_from_user_timeval(&tv, arg1)) {
|
|
+ return -TARGET_EFAULT;
|
|
+ }
|
|
ret = get_errno(gettimeofday(&tv, NULL));
|
|
if (!is_error(ret)) {
|
|
if (copy_to_user_timeval(arg1, &tv))
|