Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752283AbbKQLCA (ORCPT ); Tue, 17 Nov 2015 06:02:00 -0500 Received: from mail-ob0-f174.google.com ([209.85.214.174]:36351 "EHLO mail-ob0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751220AbbKQLB6 (ORCPT ); Tue, 17 Nov 2015 06:01:58 -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> Date: Tue, 17 Nov 2015 12:01:58 +0100 Message-ID: Subject: Re: [PATCH] gpio: syscon: fix a possible NULL dereference From: Linus Walleij To: LABBE Corentin Cc: Alexandre Courbot , "linux-gpio@vger.kernel.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: 621 Lines: 19 On Thu, Nov 5, 2015 at 5:02 PM, 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 Patch applied with Alexandre's review 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/