Commit 388d148f authored by Kyle McMartin's avatar Kyle McMartin Committed by Linus Torvalds

m32r: get_user takes an lvalue, not a pointer

Signed-off-by: default avatarKyle McMartin <kyle@redhat.com>
Acked-by: default avatarAl "my fuckup" Viro <viro@zeniv.linux.org.uk>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 99d6734f
...@@ -256,7 +256,7 @@ static int setup_rt_frame(int sig, struct k_sigaction *ka, siginfo_t *info, ...@@ -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) static int prev_insn(struct pt_regs *regs)
{ {
u16 inst; u16 inst;
if (get_user(&inst, (u16 __user *)(regs->bpc - 2))) if (get_user(inst, (u16 __user *)(regs->bpc - 2)))
return -EFAULT; return -EFAULT;
if ((inst & 0xfff0) == 0x10f0) /* trap ? */ if ((inst & 0xfff0) == 0x10f0) /* trap ? */
regs->bpc -= 2; regs->bpc -= 2;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment