Skip to content

Commit

Permalink
[PATCH] ppc user annotations: sigcontext
Browse files Browse the repository at this point in the history
sigcontext.regs is a userland pointer

Signed-off-by: Al Viro <viro@parcelfarce.linux.theplanet.co.uk>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
  • Loading branch information
Al Viro authored and Linus Torvalds committed Apr 25, 2005
1 parent cf02510 commit 9090e00
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion arch/ppc/kernel/signal.c
Original file line number Diff line number Diff line change
Expand Up @@ -632,7 +632,7 @@ handle_signal(unsigned long sig, struct k_sigaction *ka,
if (__put_user((unsigned long) ka->sa.sa_handler, &sc->handler)
|| __put_user(oldset->sig[0], &sc->oldmask)
|| __put_user(oldset->sig[1], &sc->_unused[3])
|| __put_user((struct pt_regs *)frame, &sc->regs)
|| __put_user((struct pt_regs __user *)frame, &sc->regs)
|| __put_user(sig, &sc->signal))
goto badframe;

Expand Down
2 changes: 1 addition & 1 deletion include/asm-ppc/sigcontext.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ struct sigcontext {
int signal;
unsigned long handler;
unsigned long oldmask;
struct pt_regs *regs;
struct pt_regs __user *regs;
};

#endif

0 comments on commit 9090e00

Please sign in to comment.