* [Qemu-devel] [PATCH v2 12/13] signal/ppc/do_setcontext remove __get_user return check
@ 2014-06-06 9:46 riku.voipio
0 siblings, 0 replies; only message in thread
From: riku.voipio @ 2014-06-06 9:46 UTC (permalink / raw)
To: qemu-devel; +Cc: Riku Voipio, Alexander Graf
From: Riku Voipio <riku.voipio@linaro.org>
The last remaining check for return value of __get_user.
Signed-off-by: Riku Voipio <riku.voipio@linaro.org>
Cc: Alexander Graf <agraf@suse.de>
---
linux-user/signal.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/linux-user/signal.c b/linux-user/signal.c
index 29d87f9..e47db2c 100644
--- a/linux-user/signal.c
+++ b/linux-user/signal.c
@@ -4806,8 +4806,7 @@ static int do_setcontext(struct target_ucontext *ucp, CPUPPCState *env, int sig)
fprintf (stderr, "do_setcontext: not implemented\n");
return 0;
#else
- if (__get_user(mcp_addr, &ucp->tuc_regs))
- return 1;
+ __get_user(mcp_addr, &ucp->tuc_regs);
if (!lock_user_struct(VERIFY_READ, mcp, mcp_addr, 1))
return 1;
--
2.0.0.rc2
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2014-06-06 9:47 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-06-06 9:46 [Qemu-devel] [PATCH v2 12/13] signal/ppc/do_setcontext remove __get_user return check riku.voipio
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).