Skip to content

Commit 388d148

Browse files
jkkmtorvalds
authored andcommitted
m32r: get_user takes an lvalue, not a pointer
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>
1 parent 99d6734 commit 388d148

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/m32r/kernel/signal.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ static int setup_rt_frame(int sig, struct k_sigaction *ka, siginfo_t *info,
256256
static int prev_insn(struct pt_regs *regs)
257257
{
258258
u16 inst;
259-
if (get_user(&inst, (u16 __user *)(regs->bpc - 2)))
259+
if (get_user(inst, (u16 __user *)(regs->bpc - 2)))
260260
return -EFAULT;
261261
if ((inst & 0xfff0) == 0x10f0) /* trap ? */
262262
regs->bpc -= 2;

0 commit comments

Comments
 (0)