[RESEND PATCH] pinctrl: at91: fix null pointer dereference

Linus Walleij linus.walleij at linaro.org
Mon Aug 3 01:19:12 PDT 2015


On Tue, Jul 28, 2015 at 9:48 AM, Ludovic Desroches
<ludovic.desroches at atmel.com> wrote:

> From: David Dueck <davidcdueck at googlemail.com>
>
> Not all gpio banks are necessarily enabled, in the current code this can
> lead to null pointer dereferences.
(...)
>
> Signed-off-by: David Dueck <davidcdueck at googlemail.com>
> Acked-by: Ludovic Desroches <ludovic.desroches at atmel.com>
> Acked-by: Alexandre Belloni <alexandre.belloni at free-electrons.com>
> CC: Nicolas Ferre <nicolas.ferre at atmel.com>
> CC: Boris Brezillon <boris.brezillon at free-electrons.com>
> CC: linux-arm-kernel at lists.infradead.org
> CC: linux-kernel at vger.kernel.org
> ---
>
> This patch fixes a oops in the kernel because of a NULL pointer in a table.
> Having a NULL pointer in this table is the normal behavior if a PIO controller
> is not enabled. So this fix is not a quick and dirty hack, it's usual to skip
> an entry from a table if it is not filled.

This v2 version applied for fixes with v3.18+ stable tag.

Yours,
Linus Walleij



More information about the linux-arm-kernel mailing list