Thread (15 messages) 15 messages, 7 authors, 2015-08-03

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

From: Linus Walleij <hidden>
Date: 2015-08-03 08:19:16
Also in: linux-gpio, lkml

On Tue, Jul 28, 2015 at 9:48 AM, Ludovic Desroches
[off-list ref] wrote:
From: David Dueck <redacted>

Not all gpio banks are necessarily enabled, in the current code this can
lead to null pointer dereferences.
(...)
Signed-off-by: David Dueck <redacted>
Acked-by: Ludovic Desroches <redacted>
Acked-by: Alexandre Belloni <redacted>
CC: Nicolas Ferre <redacted>
CC: Boris Brezillon <redacted>
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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help