Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp5847498rwb; Tue, 17 Jan 2023 20:15:53 -0800 (PST) X-Google-Smtp-Source: AMrXdXt3bS1ibfzBpsTOGYJCjNfJQkS7lZGkgRzy4RHuJNpuDt5nIFwCUJJW0cYE/RZhfs2Bf49H X-Received: by 2002:a05:6a20:2da0:b0:a4:7132:ab5b with SMTP id bf32-20020a056a202da000b000a47132ab5bmr5203136pzb.58.1674015353094; Tue, 17 Jan 2023 20:15:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674015353; cv=none; d=google.com; s=arc-20160816; b=rBGlKG+fngHB+TUBKwsE04R5BxUBFYyy36YBXhFeVqEmNl11f8CfzASsczB5yax4bA hnH7f3QHcIFOkBYfpj7gGK2wJUJ6evJQf1eWkziQFcfdM/us7GBW2Qbb9r3tCQKDfqft lpFk0M2kR/jDyH0V6w1aNcmxJ8021pE75kOfpKLgjNIuWUNtE/ahsrTZDjW44SoEyQlJ ghdgrh0xVrzC2xXMYWP7ik92MnJVRdzDgtPK7Tq6+0ctYYF2qTN+08vpULcm2fE0f5Wo mav9SBvS4k9nQVKCnolzEer3FmRlT/Pkq3TmMMOichK3JiMBDUOUUwIDOgalDYjR5YlZ QKfw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=vJ5918SWrArpt20LOZIAYh6HXn5nKep5EzLdGe2OFgI=; b=IWUxK7my/e1SvmeSNLaZUnctGX3NHYzWs5EY+vxtPFWchDMnJS0q2uC+HUBlMHzjNJ +AMwW8mjpG6NVaaQr/AWAeceyZx/8oOeHE7KwCwdYkdrqLeuefL1v2H//grKPDCGsO6k 2NU4ObHygj95g8z3udfQzZTudCrNqKo70P6oKVoQOHERU1ty139Q4/mjhQmV9J3gK63h nAEB5K4KKJlAMd8SZ50zcbbbc3zBZIzQLGZ0B9NPGABafLmI4ATQXp0GL882Kpk8s57C fcDgiaDe7aAlOHB0F3SZAgxgz+CNl5bBb5e33BVe1XsGElN6TPDwDkoofGCkFpmxc/CI nqfw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=NaWie1Ta; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w190-20020a6382c7000000b004ba7c769004si2814251pgd.656.2023.01.17.20.15.47; Tue, 17 Jan 2023 20:15:53 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=NaWie1Ta; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229646AbjARD0L (ORCPT + 46 others); Tue, 17 Jan 2023 22:26:11 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49442 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229462AbjARD0I (ORCPT ); Tue, 17 Jan 2023 22:26:08 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 760254FCFD; Tue, 17 Jan 2023 19:26:07 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 04DEE61601; Wed, 18 Jan 2023 03:26:07 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9896CC433D2; Wed, 18 Jan 2023 03:26:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1674012366; bh=2PjPN3LtRvrndMQORaS0fpW+/QZolRQR3rsF4H3EiN8=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=NaWie1TaQKSc3V5S8P/fdVLJlre+Oh4kUX0WxnRvRoTBBJl951Cp0UogKidPXNoG3 EatUia4U3W95xHdcY173+0tCR+hsP9tNTu7c7wzJ0FctumV+GqRiTvKPTWwUX5FuTy UcoSQyabrgSGSixX/x2ur7c/OgjH/1Xuk3Z4KPZCZ5bUNnrvotMHT22PtTx+K91cFs 4Kd7JGeKc/QE0eSw6MQb9GmIV4uBhkl8ep0aC6hVXdNOpQNoJDUcShg5U6S7YdB8r+ jwAh0SGCSItrot17rx0VZ23HpeF/kAkOUrrSkaTDtdN2V428YEflPrk60Fn8LSU6QT 7PyavQ+spyLog== Date: Tue, 17 Jan 2023 19:26:04 -0800 From: Jakub Kicinski To: Piergiorgio Beruto Cc: Andrew Lunn , Heiner Kallweit , Russell King , "David S. Miller" , Eric Dumazet , Paolo Abeni , linux-kernel@vger.kernel.org, netdev@vger.kernel.org, Oleksij Rempel , mailhol.vincent@wanadoo.fr, sudheer.mogilappagari@intel.com, sbhatta@marvell.com, linux-doc@vger.kernel.org, wangjie125@huawei.com, corbet@lwn.net, lkp@intel.com, gal@nvidia.com, gustavoars@kernel.org, bagasdotme@gmail.com Subject: Re: [PATCH net-next 1/1] drivers/phylib: fix coverity issue Message-ID: <20230117192604.77a16822@kernel.org> In-Reply-To: <5061b6d09d0cd69c832c9c0f2f1a6848d3a5ab1c.1673991998.git.piergiorgio.beruto@gmail.com> References: <5061b6d09d0cd69c832c9c0f2f1a6848d3a5ab1c.1673991998.git.piergiorgio.beruto@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 17 Jan 2023 22:47:53 +0100 Piergiorgio Beruto wrote: > Subject: [PATCH net-next 1/1] drivers/phylib: fix coverity issue The title of the patch should refer to the bug rather than which tool found it. here, for eaxmple: net: phy: fix use of uninit variable when setting PLCA config > Coverity reported the following: > > *** CID 1530573: (UNINIT) > drivers/net/phy/phy-c45.c:1036 in genphy_c45_plca_set_cfg() > 1030 return ret; > 1031 > 1032 val = ret; > 1033 } > 1034 > 1035 if (plca_cfg->node_cnt >= 0) [snip] > Signed-off-by: Piergiorgio Beruto > Reported-by: coverity-bot > Addresses-Coverity-ID: 1530573 ("UNINIT") > Fixes: 493323416fed ("drivers/net/phy: add helpers to get/set PLCA configuration") nit: the tags are in somewhat unnatural order. Since you'll need to respin for the subject change, this would be better: Reported-by: coverity-bot Fixes: 493323416fed ("drivers/net/phy: add helpers to get/set PLCA configuration") Signed-off-by: Piergiorgio Beruto (Yes, the custom coverity tag can go meet its friends in the bin)