Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 272981
b: refs/heads/master
c: 3c916fe
h: refs/heads/master
i:
  272979: 174d397
v: v3
  • Loading branch information
Al Viro authored and Richard Weinberger committed Nov 2, 2011
1 parent 1eccfb8 commit 869cb3d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 78722a445bb253fa6bcbe9d6589f27db78056af6
refs/heads/master: 3c916fec12ab614aca5cf6ec09ae3adc6b911193
13 changes: 8 additions & 5 deletions trunk/arch/um/sys-x86_64/signal.c
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,10 @@ void copy_sc(struct uml_pt_regs *regs, void *from)
}

static int copy_sc_from_user(struct pt_regs *regs,
struct sigcontext __user *from,
struct _fpstate __user *fpp)
struct sigcontext __user *from)
{
struct user_i387_struct fp;
void __user *buf;
int err = 0;

#define GETREG(regs, regno, sc, regname) \
Expand Down Expand Up @@ -78,7 +78,11 @@ static int copy_sc_from_user(struct pt_regs *regs,

#undef GETREG

err = copy_from_user(&fp, fpp, sizeof(struct user_i387_struct));
err = __get_user(buf, &from->fpstate);
if (err)
return 1;

err = copy_from_user(&fp, buf, sizeof(struct user_i387_struct));
if (err)
return 1;

Expand Down Expand Up @@ -272,8 +276,7 @@ long sys_rt_sigreturn(struct pt_regs *regs)
sigdelsetmask(&set, ~_BLOCKABLE);
set_current_blocked(&set);

if (copy_sc_from_user(&current->thread.regs, &uc->uc_mcontext,
&frame->fpstate))
if (copy_sc_from_user(&current->thread.regs, &uc->uc_mcontext))
goto segfault;

/* Avoid ERESTART handling */
Expand Down

0 comments on commit 869cb3d

Please sign in to comment.