Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752624AbbHCITQ (ORCPT ); Mon, 3 Aug 2015 04:19:16 -0400 Received: from mail-ob0-f177.google.com ([209.85.214.177]:36780 "EHLO mail-ob0-f177.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751995AbbHCITP (ORCPT ); Mon, 3 Aug 2015 04:19:15 -0400 MIME-Version: 1.0 In-Reply-To: <1438069696-25303-1-git-send-email-ludovic.desroches@atmel.com> References: <20150715133048.GD14886@odux.rfo.atmel.com> <1438069696-25303-1-git-send-email-ludovic.desroches@atmel.com> Date: Mon, 3 Aug 2015 10:19:12 +0200 Message-ID: Subject: Re: [RESEND PATCH] pinctrl: at91: fix null pointer dereference From: Linus Walleij To: Ludovic Desroches Cc: "linux-gpio@vger.kernel.org" , Jean-Christophe PLAGNIOL-VILLARD , davidcdueck@googlemail.com, Alexandre Belloni , Nicolas Ferre , Boris Brezillon , "linux-arm-kernel@lists.infradead.org" , "linux-kernel@vger.kernel.org" Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1248 Lines: 32 On Tue, Jul 28, 2015 at 9:48 AM, Ludovic Desroches wrote: > From: David Dueck > > Not all gpio banks are necessarily enabled, in the current code this can > lead to null pointer dereferences. (...) > > Signed-off-by: David Dueck > Acked-by: Ludovic Desroches > Acked-by: Alexandre Belloni > CC: Nicolas Ferre > CC: Boris Brezillon > CC: linux-arm-kernel@lists.infradead.org > CC: linux-kernel@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 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/