Received: by 2002:a05:6358:f14:b0:e5:3b68:ec04 with SMTP id b20csp3625600rwj; Mon, 19 Dec 2022 22:50:50 -0800 (PST) X-Google-Smtp-Source: AA0mqf7yKyt3SUOJygV2BQCttu9BB3nTp4Q+lTLt3xvLCtfgf9NWIiTu8J1iQ9Z6ao6qhGYU2Yv5 X-Received: by 2002:a17:90a:6c96:b0:212:ef19:1e0 with SMTP id y22-20020a17090a6c9600b00212ef1901e0mr46331295pjj.1.1671519049987; Mon, 19 Dec 2022 22:50:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671519049; cv=none; d=google.com; s=arc-20160816; b=Sn96RFeJcq60voa/0k1WYk1E97dph5ZCO8jMV2sKzWqFmU5geYp3uhbeXiSO7Qb8zz vklYpBpHs3s24w3Xw4wKGUZ46IWm/lIdsKSo9gDdt1zfD+jEqtrENgUg98zvL80pQmpw qhz7VCdzHdDNU2qNGmcD+yo6w4C7sP50rHPQs0IExIBVCv5V3TuNT8cH/JNDvNYHsvXo w2Qz6Fq7bFqxRq+9d0aWbCqEsDW0T90jqduthS5ysg9IaD/s/DcGb3VUDHSCexfM0KC1 W/kwdTU8XyiJjXEU25U0JBq9iLNG47vTj8VZR+TqefUYFmRJsK25Kt9qKS3qXliwMCg2 cRQQ== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=fZ55fK+rBHxzLQTQDzeHsEkqnYvLJhSwxRsEbq74Ca4=; b=hL/hdpHnT61mtLq/m+WNMV/9qwvlIvNK2eaqUN6sWo4qkY5GQu9oQf7V2aBfp0OdpK DLvOsxXCfAs8WqugNKSQFO2SQOnvapLcmxFoUor6DOG1ccbYymC+xnFA9xnulqvRWDzi 9XmZlDPZ7R8qCfijIgcIQ1bWn+4brOkd02JNcRUeO95Zd8Fo/ocJ3UZ8hbvGOPBAwJug pqn6+TKapFnS5XIliRtOTE7epFIqvRL7RJA8Sus3p2v9QO/2ATJOFVlUTFadQTa/t/N7 9vKPVQUJf2zVmXKdrcr/UinX1H8Zdyluet0/5rKuaOpty7gov76nSNzKgRLyeiXrtDoO cGpw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@yandex-team.ru header.s=default header.b=POTAmd49; 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=yandex-team.ru Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r24-20020a63fc58000000b00477ad8ce6b7si12077432pgk.287.2022.12.19.22.50.40; Mon, 19 Dec 2022 22:50:49 -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=@yandex-team.ru header.s=default header.b=POTAmd49; 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=yandex-team.ru Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233077AbiLTGdI (ORCPT + 70 others); Tue, 20 Dec 2022 01:33:08 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41316 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232887AbiLTGdD (ORCPT ); Tue, 20 Dec 2022 01:33:03 -0500 Received: from forwardcorp1b.mail.yandex.net (forwardcorp1b.mail.yandex.net [178.154.239.136]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2FBD910A9; Mon, 19 Dec 2022 22:33:00 -0800 (PST) Received: from myt5-8800bd68420f.qloud-c.yandex.net (myt5-8800bd68420f.qloud-c.yandex.net [IPv6:2a02:6b8:c12:4615:0:640:8800:bd68]) by forwardcorp1b.mail.yandex.net (Yandex) with ESMTP id AA85C605E7; Tue, 20 Dec 2022 09:32:58 +0300 (MSK) Received: from d-tatianin-nix.yandex-team.ru (unknown [2a02:6b8:b081:a418::1:2]) by myt5-8800bd68420f.qloud-c.yandex.net (smtpcorp/Yandex) with ESMTPSA id mWekiF1Qua61-Os7KMsdQ; Tue, 20 Dec 2022 09:32:57 +0300 X-Yandex-Fwd: 1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex-team.ru; s=default; t=1671517977; bh=fZ55fK+rBHxzLQTQDzeHsEkqnYvLJhSwxRsEbq74Ca4=; h=Message-Id:Date:Cc:Subject:To:From; b=POTAmd49lFo/yCA7Kr6hv/ZWDI4yh385HgNAVUrAjRCTyCWkIB386e/0LKuYgqMO9 Dh9mLJIrnKfA8D/RWb9sIZ08DGxHgvOs4esWwZl3JjAa6WcEZe5D3JzHJbymZAf46f v4QQJ4eUUJSh8wDVTEM2smuMSloeIFw0KSqofO58= Authentication-Results: myt5-8800bd68420f.qloud-c.yandex.net; dkim=pass header.i=@yandex-team.ru From: Daniil Tatianin To: Jesse Brandeburg Cc: Daniil Tatianin , Tony Nguyen , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Harshitha Ramamurthy , Jeff Kirsher , intel-wired-lan@lists.osuosl.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2] iavf/iavf_main: actually log ->src mask when talking about it Date: Tue, 20 Dec 2022 09:32:46 +0300 Message-Id: <20221220063246.1593327-1-d-tatianin@yandex-team.ru> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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 This fixes a copy-paste issue where dev_err would log the dst mask even though it is clearly talking about src. Found by Linux Verification Center (linuxtesting.org) with the SVACE static analysis tool. Fixes: 0075fa0fadd0 ("i40evf: Add support to apply cloud filters") Signed-off-by: Daniil Tatianin --- drivers/net/ethernet/intel/iavf/iavf_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/intel/iavf/iavf_main.c b/drivers/net/ethernet/intel/iavf/iavf_main.c index c4e451ef7942..adc02adef83a 100644 --- a/drivers/net/ethernet/intel/iavf/iavf_main.c +++ b/drivers/net/ethernet/intel/iavf/iavf_main.c @@ -3850,7 +3850,7 @@ static int iavf_parse_cls_flower(struct iavf_adapter *adapter, field_flags |= IAVF_CLOUD_FIELD_IIP; } else { dev_err(&adapter->pdev->dev, "Bad ip src mask 0x%08x\n", - be32_to_cpu(match.mask->dst)); + be32_to_cpu(match.mask->src)); return -EINVAL; } } -- 2.25.1