Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752265AbbKIAXe (ORCPT ); Sun, 8 Nov 2015 19:23:34 -0500 Received: from mail-io0-f181.google.com ([209.85.223.181]:36700 "EHLO mail-io0-f181.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751417AbbKIAXd (ORCPT ); Sun, 8 Nov 2015 19:23:33 -0500 MIME-Version: 1.0 In-Reply-To: <1446739355-25849-1-git-send-email-clabbe.montjoie@gmail.com> References: <1446739355-25849-1-git-send-email-clabbe.montjoie@gmail.com> From: Alexandre Courbot Date: Mon, 9 Nov 2015 09:23:12 +0900 Message-ID: Subject: Re: [PATCH] gpio: syscon: fix a possible NULL dereference To: LABBE Corentin Cc: Linus Walleij , "linux-gpio@vger.kernel.org" , Linux Kernel Mailing List 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: 660 Lines: 17 On Fri, Nov 6, 2015 at 1:02 AM, LABBE Corentin wrote: > of_match_device could return NULL, and so cause a NULL pointer > dereference later at line 199: > priv->flags = of_id->data; > > Reported-by: coverity (CID 1324140) > Signed-off-by: LABBE Corentin Same (optional) suggestion as the 74xx-mmio patch. Reviewed-by: Alexandre Courbot -- 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/