Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752096AbbKQNla (ORCPT ); Tue, 17 Nov 2015 08:41:30 -0500 Received: from mail-ob0-f182.google.com ([209.85.214.182]:36137 "EHLO mail-ob0-f182.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752713AbbKQNl1 (ORCPT ); Tue, 17 Nov 2015 08:41:27 -0500 MIME-Version: 1.0 In-Reply-To: <1447273657-1668-3-git-send-email-clabbe.montjoie@gmail.com> References: <1447273657-1668-1-git-send-email-clabbe.montjoie@gmail.com> <1447273657-1668-3-git-send-email-clabbe.montjoie@gmail.com> Date: Tue, 17 Nov 2015 14:41:26 +0100 Message-ID: Subject: Re: [PATCH 3/3] gpio: palmas: 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: 705 Lines: 22 On Wed, Nov 11, 2015 at 9:27 PM, LABBE Corentin wrote: > of_match_device could return NULL, and so cause a NULL pointer > dereference later. > > Reported-by: coverity (CID 1130700) > Signed-off-by: LABBE Corentin Patch applied. ALl of these seem pretty academic, as the match table is likely the same that causes the device core to call probe() in the first place. But whatever. 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/