Re: [PATCH v4 2/2] powerpc: Uprobes port to powerpc

From: Benjamin Herrenschmidt
Date: Fri Aug 24 2012 - 03:08:13 EST


On Fri, 2012-08-24 at 11:13 +1000, Michael Ellerman wrote:
>
> Yeah. A NULL regs here is a kernel bug, so I think it's actually
> preferable to crash than silently return.

Or best, if you think there's a remote chance that the bug might hit:

if (WARN(!regs))
return

Cheers,
Ben.


--
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/