Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 339196
b: refs/heads/master
c: b64e1c6
h: refs/heads/master
v: v3
  • Loading branch information
Will Deacon authored and Catalin Marinas committed Nov 23, 2012
1 parent 53688b2 commit 990519f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 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: 060a18c7e3d52bdb2ff70dcc09f23dcf1656e6c8
refs/heads/master: b64e1c6139c5007b7773b0ce416ef9ea035e8724
12 changes: 6 additions & 6 deletions trunk/arch/arm64/kernel/signal.c
Original file line number Diff line number Diff line change
Expand Up @@ -202,11 +202,11 @@ static int setup_sigframe(struct rt_sigframe __user *sf,
return err;
}

static void __user *get_sigframe(struct k_sigaction *ka, struct pt_regs *regs,
int framesize)
static struct rt_sigframe __user *get_sigframe(struct k_sigaction *ka,
struct pt_regs *regs)
{
unsigned long sp, sp_top;
void __user *frame;
struct rt_sigframe __user *frame;

sp = sp_top = regs->sp;

Expand All @@ -216,8 +216,8 @@ static void __user *get_sigframe(struct k_sigaction *ka, struct pt_regs *regs,
if ((ka->sa.sa_flags & SA_ONSTACK) && !sas_ss_flags(sp))
sp = sp_top = current->sas_ss_sp + current->sas_ss_size;

sp = (sp - framesize) & ~15;
frame = (void __user *)sp;
sp = (sp - sizeof(struct rt_sigframe)) & ~15;
frame = (struct rt_sigframe __user *)sp;

/*
* Check that we can actually write to the signal frame.
Expand Down Expand Up @@ -253,7 +253,7 @@ static int setup_rt_frame(int usig, struct k_sigaction *ka, siginfo_t *info,
stack_t stack;
int err = 0;

frame = get_sigframe(ka, regs, sizeof(*frame));
frame = get_sigframe(ka, regs);
if (!frame)
return 1;

Expand Down

0 comments on commit 990519f

Please sign in to comment.