aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--arch/ppc/kernel/signal.c2
-rw-r--r--include/asm-ppc/sigcontext.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/arch/ppc/kernel/signal.c b/arch/ppc/kernel/signal.c
index 645eae19805c..d500f5ebc29c 100644
--- a/arch/ppc/kernel/signal.c
+++ b/arch/ppc/kernel/signal.c
@@ -632,7 +632,7 @@ handle_signal(unsigned long sig, struct k_sigaction *ka,
632 if (__put_user((unsigned long) ka->sa.sa_handler, &sc->handler) 632 if (__put_user((unsigned long) ka->sa.sa_handler, &sc->handler)
633 || __put_user(oldset->sig[0], &sc->oldmask) 633 || __put_user(oldset->sig[0], &sc->oldmask)
634 || __put_user(oldset->sig[1], &sc->_unused[3]) 634 || __put_user(oldset->sig[1], &sc->_unused[3])
635 || __put_user((struct pt_regs *)frame, &sc->regs) 635 || __put_user((struct pt_regs __user *)frame, &sc->regs)
636 || __put_user(sig, &sc->signal)) 636 || __put_user(sig, &sc->signal))
637 goto badframe; 637 goto badframe;
638 638
diff --git a/include/asm-ppc/sigcontext.h b/include/asm-ppc/sigcontext.h
index fc5e358c65f1..f82dcccdee1e 100644
--- a/include/asm-ppc/sigcontext.h
+++ b/include/asm-ppc/sigcontext.h
@@ -9,7 +9,7 @@ struct sigcontext {
9 int signal; 9 int signal;
10 unsigned long handler; 10 unsigned long handler;
11 unsigned long oldmask; 11 unsigned long oldmask;
12 struct pt_regs *regs; 12 struct pt_regs __user *regs;
13}; 13};
14 14
15#endif 15#endif