Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp2461693rwb; Fri, 16 Dec 2022 02:19:18 -0800 (PST) X-Google-Smtp-Source: AA0mqf7VgHNy2yMFqw7bcc7TgVoRTCUgU5BT+iyHOsa4TGLJzl0tLLXPDjh1eljzaf5GIkOMCS83 X-Received: by 2002:aa7:8818:0:b0:577:9807:543b with SMTP id c24-20020aa78818000000b005779807543bmr32432754pfo.16.1671185958477; Fri, 16 Dec 2022 02:19:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671185958; cv=none; d=google.com; s=arc-20160816; b=y0Mn2NNhv3/ApQBLGWMzUxO8v+oR7l7oT0+DVnkjzlDUh0be8DCq0Ue1FlvTWNQfFC IkclQg26jLi8KQF1gsmt6ipFVh9GjHgN9+lhWLXWw1JuJL6gIlSjyhfCX/JCjemXjxXH llrk3m+AVcZhtR5XnnSFwZ3fmwqH7Dvh4g1OjQQc7HnWe/t6IXlT9jofx2kbmTk1FDB+ h488eu/FiLGD6jjBDUKFmlOZNyjhf3QEALg7po8SHQW3XoEYw17t8lF0Cs2itWf1B4Eq lPuz3SvqVXdX1TYGVeozZxynpQmHrkj2Agnzd32gTB53040x47vNyZmBqivAqrKrNRmg fN4A== 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=DpGcPD4QYNFodyzBuUrzHjZYe9mlGwIx7WnbID1FEt0=; b=bid24FeBvlL2alawfgRsONTf1hjwqvQh9BXjay7NIPOYqTJ/bVNVsFFqQxogdr71JD DgfgeshANoAE720Pw79BLoxeNXx6UI6SS8Dm/L4asQ6hd6AhntVewJa+VM1k6tjxLiCC nuwy+OAE9Z5V+n+Yh8U1qM/LAMhyg4Lmc09BY6/PbPUmAHvXcIatBIhNe7ZPCwI4nxxN fKTJWYwY5WX+T4o1iygku3Pvl1RQBtOa3x/mriHpFR9rJrwrhZDNI/leeARLyKTrC+Bs dOWNIFvXa3/5GVu2mvns34iKVjAS9FZgO9VHjSVGCUjVv+2RGpxnTidHUBB8O6+pUEbv CHxA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@yandex-team.ru header.s=default header.b=MtdZfUs9; 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 b74-20020a63344d000000b0046eed3142cesi2574949pga.350.2022.12.16.02.19.08; Fri, 16 Dec 2022 02:19:18 -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=MtdZfUs9; 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 S230101AbiLPJNn (ORCPT + 68 others); Fri, 16 Dec 2022 04:13:43 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54580 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229453AbiLPJNk (ORCPT ); Fri, 16 Dec 2022 04:13:40 -0500 Received: from forwardcorp1b.mail.yandex.net (forwardcorp1b.mail.yandex.net [178.154.239.136]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4422B3D3BE; Fri, 16 Dec 2022 01:13:37 -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 18FE0601F0; Fri, 16 Dec 2022 12:13:35 +0300 (MSK) Received: from d-tatianin-nix.yandex-team.ru (unknown [2a02:6b8:b081:20::1:18]) by myt5-8800bd68420f.qloud-c.yandex.net (smtpcorp/Yandex) with ESMTPSA id RDdkrU0Q6Ko1-Iah20vAt; Fri, 16 Dec 2022 12:13:34 +0300 X-Yandex-Fwd: 1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex-team.ru; s=default; t=1671182014; bh=DpGcPD4QYNFodyzBuUrzHjZYe9mlGwIx7WnbID1FEt0=; h=Message-Id:Date:Cc:Subject:To:From; b=MtdZfUs9f4EjEINccyLb/HKZmCrkn2/crpmmmC+V3erQTQDPl85m0hEs1kUQc1/Bj hYgbEkGMSjp9ReoPK/+AGzqrS5Ghx6KEGd6OsQMC9ijew/Zt2qM/kquQ6uKXFVjehU letaB9xrxR/Cny8RFPmkOOQPMZ+8/02EhZIcQO/I= 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 v1] iavfs/iavf_main: actually log ->src mask when talking about it Date: Fri, 16 Dec 2022 12:13:26 +0300 Message-Id: <20221216091326.1457454-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: 0075fa0fadd0a ("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