projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a1d5c5b
)
linux-user: Detect fault in sched_rr_get_interval
author
Tom Musta
<tommusta@gmail.com>
Tue, 12 Aug 2014 18:53:39 +0000
(13:53 -0500)
committer
Riku Voipio
<riku.voipio@linaro.org>
Fri, 22 Aug 2014 12:06:35 +0000
(15:06 +0300)
Properly detect a fault when attempting to store into an invalid
struct timespec pointer.
Signed-off-by: Tom Musta <tommusta@gmail.com>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Riku Voipio <riku.voipio@linaro.org>
linux-user/syscall.c
patch
|
blob
|
history
diff --git
a/linux-user/syscall.c
b/linux-user/syscall.c
index 4424b63c8666267dc00614de125963bca842208c..ed32f9723f17ce6e97038e75169cd5458a645f54 100644
(file)
--- a/
linux-user/syscall.c
+++ b/
linux-user/syscall.c
@@
-7794,7
+7794,7
@@
abi_long do_syscall(void *cpu_env, int num, abi_long arg1,
struct timespec ts;
ret = get_errno(sched_rr_get_interval(arg1, &ts));
if (!is_error(ret)) {
- host_to_target_timespec(arg2, &ts);
+
ret =
host_to_target_timespec(arg2, &ts);
}
}
break;