On Tue, Jul 28, 2015 at 9:48 AM, Ludovic Desroches <[email protected]> wrote:
> From: David Dueck <[email protected]> > > Not all gpio banks are necessarily enabled, in the current code this can > lead to null pointer dereferences. > > [ 51.130000] Unable to handle kernel NULL pointer dereference at virtual > address 00000058 (...) > > Signed-off-by: David Dueck <[email protected]> > Acked-by: Ludovic Desroches <[email protected]> > Acked-by: Alexandre Belloni <[email protected]> > CC: Nicolas Ferre <[email protected]> > CC: Boris Brezillon <[email protected]> > CC: [email protected] > CC: [email protected] > --- > > 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. Fair enough, better too many checks than too few. Is this a regression to v4.2 that should go to stable or v4.3 material? Yours, Linus Walleij -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

