Re: [PATCH 2/4] m32r: get_user takes an lvalue, not a pointer

From: Al Viro
Date: Fri Oct 15 2010 - 21:44:39 EST


On Fri, Oct 15, 2010 at 09:17:09PM -0400, Kyle McMartin wrote:
> 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)))

Ouch... ACKed, my fuckup.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/