Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933410AbbFJIo5 (ORCPT ); Wed, 10 Jun 2015 04:44:57 -0400 Received: from mail-oi0-f51.google.com ([209.85.218.51]:33495 "EHLO mail-oi0-f51.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753972AbbFJIow (ORCPT ); Wed, 10 Jun 2015 04:44:52 -0400 MIME-Version: 1.0 In-Reply-To: <1433776597-615-1-git-send-email-ludovic.desroches@atmel.com> References: <1433776597-615-1-git-send-email-ludovic.desroches@atmel.com> Date: Wed, 10 Jun 2015 10:44:52 +0200 Message-ID: Subject: Re: [PATCH] pinctrl: don't try to print function groups if we can't get them From: Linus Walleij To: Ludovic Desroches Cc: "linux-gpio@vger.kernel.org" , "linux-kernel@vger.kernel.org" , Nicolas Ferre 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: 611 Lines: 18 On Mon, Jun 8, 2015 at 5:16 PM, Ludovic Desroches wrote: > There is no reason to try to print groups associated to a function if > get_function_groups returns an error. Moreover, it can lead to a NULL > pointer dereference error. > > Signed-off-by: Ludovic Desroches Patch applied. 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/