Skip to content

Commit

Permalink
m32r: get_user takes an lvalue, not a pointer
Browse files Browse the repository at this point in the history
Signed-off-by: Kyle McMartin <kyle@redhat.com>
Acked-by: Al "my fuckup" Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
Kyle McMartin authored and Linus Torvalds committed Oct 16, 2010
1 parent 99d6734 commit 388d148
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/m32r/kernel/signal.c
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ static int setup_rt_frame(int sig, struct k_sigaction *ka, siginfo_t *info,
static int prev_insn(struct pt_regs *regs)
{
u16 inst;
if (get_user(&inst, (u16 __user *)(regs->bpc - 2)))
if (get_user(inst, (u16 __user *)(regs->bpc - 2)))
return -EFAULT;
if ((inst & 0xfff0) == 0x10f0) /* trap ? */
regs->bpc -= 2;
Expand Down

0 comments on commit 388d148

Please sign in to comment.