diff options
author | Harvey Harrison <harvey.harrison@gmail.com> | 2008-02-08 15:10:00 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-04-17 11:40:46 -0400 |
commit | 2d19c4580682511be1eadf47cdee22d5eb002f94 (patch) | |
tree | d0445fa1d44eccd27253c2a719e0ab53e61a8b32 /arch/x86/kernel/signal_32.c | |
parent | 1a1768039c8fdd48d69a6bc3b7f56943b2b20567 (diff) |
x86: use sizeof(long) to unify signal_32|64.c
Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
Cc: Roland McGrath <roland@redhat.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'arch/x86/kernel/signal_32.c')
-rw-r--r-- | arch/x86/kernel/signal_32.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/arch/x86/kernel/signal_32.c b/arch/x86/kernel/signal_32.c index 9eb23fb66b1e..47c85e6b14bb 100644 --- a/arch/x86/kernel/signal_32.c +++ b/arch/x86/kernel/signal_32.c | |||
@@ -214,11 +214,12 @@ badframe: | |||
214 | 214 | ||
215 | asmlinkage int sys_rt_sigreturn(unsigned long __unused) | 215 | asmlinkage int sys_rt_sigreturn(unsigned long __unused) |
216 | { | 216 | { |
217 | struct pt_regs *regs = (struct pt_regs *) &__unused; | 217 | struct pt_regs *regs = (struct pt_regs *)&__unused; |
218 | struct rt_sigframe __user *frame = (struct rt_sigframe __user *)(regs->sp - 4); | 218 | struct rt_sigframe __user *frame; |
219 | sigset_t set; | 219 | sigset_t set; |
220 | int ax; | 220 | int ax; |
221 | 221 | ||
222 | frame = (struct rt_sigframe __user *)(regs->sp - sizeof(long)); | ||
222 | if (!access_ok(VERIFY_READ, frame, sizeof(*frame))) | 223 | if (!access_ok(VERIFY_READ, frame, sizeof(*frame))) |
223 | goto badframe; | 224 | goto badframe; |
224 | if (__copy_from_user(&set, &frame->uc.uc_sigmask, sizeof(set))) | 225 | if (__copy_from_user(&set, &frame->uc.uc_sigmask, sizeof(set))) |