Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp704701pxb; Thu, 15 Apr 2021 04:48:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxsqSC/WO8ZgXL/lGHZnpFXo6IpGWB5OIdEKv55cxSepE139DhWIsDCQxCpZFR9dNiB/NHx X-Received: by 2002:a17:906:415b:: with SMTP id l27mr2996863ejk.19.1618487313287; Thu, 15 Apr 2021 04:48:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618487313; cv=none; d=google.com; s=arc-20160816; b=Aq+Zzl6/eBvXP/1zgChVbm7xX6k+zMKvkwLn1CasjGH8CgDmSpx5fiE2KSPZMf/Z7U WcN0qFmKtAlGEv8fBH9+XXV7K6g7qfG+UdfeAS3IEh4np0XamsFTTLIDpd4XT54GpAQE xeCidmUfuAUUbYj+3C8sf/vvIC1IUKkO4NpTEs6KW3IpwRCNegkZgXvwavpwnMz3FGTZ s4CjzaNVNuHBs5dn+2Sntpa/Edik/k97FjZflDxyNFf8FRZZSDyD+kiz8Bg69qJLxVhf I35AO28STVpcKxWoCs/y0iEdWO3N85b8wJ9Dd5bO7NPRqwayvpDXD3xmNVW5DVrRXihw /F3A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=cs7BKf34hm+A+WSw9uSOMY2rywVGzES0RkaPUWSfCuM=; b=qrdP9L+JCRJq8m6O9gaHfo/V/r26ubgJgKsW94gcJSF8+pH8LrcRILjZz3S0RcufyX fuh+kiSTd6ZNLFr8txz+8/y/4KdMbRo2VveM5EhfGG2gf5bi4P/9zLMGNI0Q2eVen7lO oUimXIVaXlNT/OrCs9C+mILz34tFvrevdRtYhICVWfQG56Cp+jg2wvZokr5Lh6v3RoAf 9kWEfmXvTY0FT1oUL1oQTyySgX9hD2ikkUsxAlj75Dpz/qRGZVBladll3f2p17ACX8Ya SrO5H7RFYKdrMh5wAQHAJG60nqDkvd9xCqQSVzNEgdKXTLCcl9WSXAnknow8lWt/+rzt /zkQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p4si2027634edq.332.2021.04.15.04.48.10; Thu, 15 Apr 2021 04:48:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232631AbhDOLrn (ORCPT + 99 others); Thu, 15 Apr 2021 07:47:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59150 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232642AbhDOLrn (ORCPT ); Thu, 15 Apr 2021 07:47:43 -0400 Received: from metis.ext.pengutronix.de (metis.ext.pengutronix.de [IPv6:2001:67c:670:201:290:27ff:fe1d:cc33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 069C4C061756 for ; Thu, 15 Apr 2021 04:47:19 -0700 (PDT) Received: from gallifrey.ext.pengutronix.de ([2001:67c:670:201:5054:ff:fe8d:eefb] helo=bjornoya.blackshift.org) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lX0So-0005kK-1U; Thu, 15 Apr 2021 13:47:14 +0200 Received: from pengutronix.de (unknown [IPv6:2a03:f580:87bc:d400:983:856d:54dc:ee1c]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) (Authenticated sender: mkl-all@blackshift.org) by smtp.blackshift.org (Postfix) with ESMTPSA id 78A1E60F64A; Thu, 15 Apr 2021 11:47:12 +0000 (UTC) Date: Thu, 15 Apr 2021 13:47:11 +0200 From: Marc Kleine-Budde To: Vincent MAILHOL Cc: Colin King , Wolfgang Grandegger , "David S . Miller" , Jakub Kicinski , Arunachalam Santhanam , linux-can , netdev , kernel-janitors@vger.kernel.org, open list Subject: Re: [PATCH][next] can: etas_es58x: Fix missing null check on netdev pointer Message-ID: <20210415114711.fqxj2j744fmqw6pb@pengutronix.de> References: <20210415084723.1807935-1-colin.king@canonical.com> <20210415090412.q3k4tmsp3rdfj54t@pengutronix.de> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="t7rubfvizd7wa7y7" Content-Disposition: inline In-Reply-To: X-SA-Exim-Connect-IP: 2001:67c:670:201:5054:ff:fe8d:eefb X-SA-Exim-Mail-From: mkl@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --t7rubfvizd7wa7y7 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 15.04.2021 20:42:36, Vincent MAILHOL wrote: > On Thu. 15 Apr 2021 at 18:04, Marc Kleine-Budde wrot= e: > > On 15.04.2021 09:47:23, Colin King wrote: > > > From: Colin Ian King > > > > > > There is an assignment to *netdev that is can potentially be null but= the > ^^ > Typo: that is can -> that can Fixed. > > > null check is checking netdev and not *netdev as intended. Fix this by > > > adding in the missing * operator. > > > > > > Addresses-Coverity: ("Dereference before null check") > > > Fixes: 8537257874e9 ("can: etas_es58x: add core support for ETAS ES58= X CAN USB interfaces") > > > Signed-off-by: Colin Ian King >=20 > Acked-by: Vincent Mailhol Added to the patch. Tnx, Marc --=20 Pengutronix e.K. | Marc Kleine-Budde | Embedded Linux | https://www.pengutronix.de | Vertretung West/Dortmund | Phone: +49-231-2826-924 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | --t7rubfvizd7wa7y7 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEK3kIWJt9yTYMP3ehqclaivrt76kFAmB4J70ACgkQqclaivrt 76kHtAgAr2VHjyVKYe8lsy62ZU9S+BhaUtOfaHJF8shAcpOeiyBIJyAaxExUjGri xEmOffCtfWmRmuk3sWLczgQ5690LfMZIGCz2n5zJZ2wjxUywNnWFCKY60pWKhYly kR2GVviWErqSq5V2ibkj7qCgQCtMAPsQinJx4YbSmw37xVFaluCZfDobiznLs0Xk ZLgpCXK4kzXrI0ZpoVJ4Lpc4lz7eF/l9z62oUlAxBGx0b2lIe4ogRPIzKG7gGci8 CZY+aWMUGOVNkdcO2gm/9bPH9Ot58QAS1Y1D0FPX4lxRgKr7TRtT7QQl3gof/9ik LaFtRQ7qWKpbaVTLiOgg0Mu9bbfJpg== =qXQD -----END PGP SIGNATURE----- --t7rubfvizd7wa7y7--