Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 88592
b: refs/heads/master
c: 866bc13
h: refs/heads/master
v: v3
  • Loading branch information
Harvey Harrison authored and Ingo Molnar committed Apr 17, 2008
1 parent 3b4c6f3 commit 579ae01
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 9 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: 123a63476cafcede1c70529f62a5bfb96a0efc1b
refs/heads/master: 866bc13fc4c625186dd01429c68c5cf708f1cfd5
12 changes: 6 additions & 6 deletions trunk/arch/x86/kernel/signal_32.c
Original file line number Diff line number Diff line change
Expand Up @@ -107,9 +107,9 @@ sys_sigaltstack(unsigned long bx)
/*
* Do a signal return; undo the signal stack.
*/

static int
restore_sigcontext(struct pt_regs *regs, struct sigcontext __user *sc, int *peax)
restore_sigcontext(struct pt_regs *regs, struct sigcontext __user *sc,
unsigned long *pax)
{
unsigned int err = 0;

Expand Down Expand Up @@ -165,19 +165,19 @@ restore_sigcontext(struct pt_regs *regs, struct sigcontext __user *sc, int *peax
}
}

err |= __get_user(*peax, &sc->ax);
err |= __get_user(*pax, &sc->ax);
return err;

badframe:
return 1;
}

asmlinkage int sys_sigreturn(unsigned long __unused)
asmlinkage unsigned long sys_sigreturn(unsigned long __unused)
{
struct pt_regs *regs = (struct pt_regs *) &__unused;
struct sigframe __user *frame = (struct sigframe __user *)(regs->sp - 8);
sigset_t set;
int ax;
unsigned long ax;

if (!access_ok(VERIFY_READ, frame, sizeof(*frame)))
goto badframe;
Expand Down Expand Up @@ -216,8 +216,8 @@ asmlinkage int sys_rt_sigreturn(unsigned long __unused)
{
struct pt_regs *regs = (struct pt_regs *)&__unused;
struct rt_sigframe __user *frame;
unsigned long ax;
sigset_t set;
int ax;

frame = (struct rt_sigframe __user *)(regs->sp - sizeof(long));
if (!access_ok(VERIFY_READ, frame, sizeof(*frame)))
Expand Down
5 changes: 3 additions & 2 deletions trunk/arch/x86/kernel/signal_64.c
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,8 @@ sys_sigaltstack(const stack_t __user *uss, stack_t __user *uoss,
* Do a signal return; undo the signal stack.
*/
static int
restore_sigcontext(struct pt_regs *regs, struct sigcontext __user *sc, unsigned long *prax)
restore_sigcontext(struct pt_regs *regs, struct sigcontext __user *sc,
unsigned long *pax)
{
unsigned int err = 0;

Expand Down Expand Up @@ -113,7 +114,7 @@ restore_sigcontext(struct pt_regs *regs, struct sigcontext __user *sc, unsigned
}
}

err |= __get_user(*prax, &sc->ax);
err |= __get_user(*pax, &sc->ax);
return err;

badframe:
Expand Down

0 comments on commit 579ae01

Please sign in to comment.