From: Kyle McMartin Date: Sat, 16 Oct 2010 01:17:09 +0000 (-0400) Subject: m32r: get_user takes an lvalue, not a pointer X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=388d148fe89cbdd99ec6bcab6cf34480e74c50ee;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git m32r: get_user takes an lvalue, not a pointer Signed-off-by: Kyle McMartin Acked-by: Al "my fuckup" Viro Signed-off-by: Linus Torvalds --- diff --git a/arch/m32r/kernel/signal.c b/arch/m32r/kernel/signal.c index cc36fe149255..a08697f0886d 100644 --- a/arch/m32r/kernel/signal.c +++ b/arch/m32r/kernel/signal.c @@ -256,7 +256,7 @@ give_sigsegv: 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;