Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp482143rwl; Thu, 23 Mar 2023 19:56:25 -0700 (PDT) X-Google-Smtp-Source: AK7set+QqvICQ9McWcI1EGUlFVji4ZG7fRr4hm9EH/wSHhDpoNF0IvBk7vtrL6T2Cg4rJmW2k8gz X-Received: by 2002:a05:6a20:6da2:b0:da:62c2:6402 with SMTP id gl34-20020a056a206da200b000da62c26402mr1431548pzb.30.1679626584829; Thu, 23 Mar 2023 19:56:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679626584; cv=none; d=google.com; s=arc-20160816; b=UWmlpj6MsRdC1b1iK13LoHWtZdGwWQuTEQMTBv2g5DPSIlk5aSLFhqArJXRf/jNDm1 K1b7jtEnVHer+GHkfsJOKfnC0ZrbG+ueX4M3FaR1yJfgVX2SYKRWd72I+1rgFeHXek5W 0au12ElfNCa1AbOrjQ6ygOpGkrpUkIZ//Xx1DCrJot2yNatioQ+a8DONzU/n59vNC7Js i75SFyaQAHZ6WeN+D2X+SyB/WK5LtYI3qaQnx57LdEvEJ+a9prsAX9gwf719Z2i2crZA rsHrXmTqXQCrB2aNsyniYpEjZmvT06R4cSkV2EPtCVAKtd1w4wxRg84BsfU61j8x8oLa kriw== 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; bh=+LIMWuaOe3iC/V/2jQw/IB9UFgxBE9cAosJEkaPSaO8=; b=f2fSlxrD1uJ8nQFtIGf+6bT+kdax5skbPkxZr3QernqN5Fkahr99Fu4xJ9l7pcZJt2 CY0B9WcpnVlSX2cmORUmV/YsKzSu4WhsYNCsF/4BFlg4TDBT+GVtPBLu56zz7pWijHz8 7gMq+0GKChHw8Jazq+34exhfBabJahhaS1oMHeCdM2EAwcEb5YGu28w1eNXJItnqZliv ZdHhTcbcazkI9gn7dm28bedXHgLwDu6KP4mlVE1VD3e6fcMsqLUX7sM2QYFcF8XIL7wf vG0HrZIEIYz07+0Fectx3Tt5/EXgYJSn+YqlVS/Ow+IjTq/Qft66L3O4VxjFi4LG3OUa Ycdg== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c37-20020a631c25000000b0050be799a2fesi19450668pgc.672.2023.03.23.19.56.13; Thu, 23 Mar 2023 19:56:24 -0700 (PDT) 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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230373AbjCXCz5 (ORCPT + 99 others); Thu, 23 Mar 2023 22:55:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34544 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230098AbjCXCz4 (ORCPT ); Thu, 23 Mar 2023 22:55:56 -0400 Received: from out30-113.freemail.mail.aliyun.com (out30-113.freemail.mail.aliyun.com [115.124.30.113]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5F7CDD535; Thu, 23 Mar 2023 19:55:52 -0700 (PDT) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R301e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018045192;MF=jiapeng.chong@linux.alibaba.com;NM=1;PH=DS;RN=12;SR=0;TI=SMTPD_---0VeW4B2Q_1679626544; Received: from localhost(mailfrom:jiapeng.chong@linux.alibaba.com fp:SMTPD_---0VeW4B2Q_1679626544) by smtp.aliyun-inc.com; Fri, 24 Mar 2023 10:55:49 +0800 From: Jiapeng Chong To: saeedm@nvidia.com Cc: leon@kernel.org, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, richardcochran@gmail.com, netdev@vger.kernel.org, linux-rdma@vger.kernel.org, linux-kernel@vger.kernel.org, Jiapeng Chong , Abaci Robot Subject: [PATCH 1/2] net/mlx5e: Fix missing error code in mlx5e_rx_reporter_err_icosq_cqe_recover() Date: Fri, 24 Mar 2023 10:55:40 +0800 Message-Id: <20230324025541.38458-1-jiapeng.chong@linux.alibaba.com> X-Mailer: git-send-email 2.20.1.7.g153144c MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-8.0 required=5.0 tests=ENV_AND_HDR_SPF_MATCH, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS, UNPARSEABLE_RELAY,USER_IN_DEF_SPF_WL autolearn=unavailable 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 The error code is missing in this code scenario, add the error code '-EINVAL' to the return value 'err'. drivers/net/ethernet/mellanox/mlx5/core/en/reporter_rx.c:104 mlx5e_rx_reporter_err_icosq_cqe_recover() warn: missing error code 'err'. Reported-by: Abaci Robot Link: https://bugzilla.openanolis.cn/show_bug.cgi?id=4601 Signed-off-by: Jiapeng Chong --- drivers/net/ethernet/mellanox/mlx5/core/en/reporter_rx.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/net/ethernet/mellanox/mlx5/core/en/reporter_rx.c b/drivers/net/ethernet/mellanox/mlx5/core/en/reporter_rx.c index b621f735cdc3..b66183204be3 100644 --- a/drivers/net/ethernet/mellanox/mlx5/core/en/reporter_rx.c +++ b/drivers/net/ethernet/mellanox/mlx5/core/en/reporter_rx.c @@ -100,8 +100,10 @@ static int mlx5e_rx_reporter_err_icosq_cqe_recover(void *ctx) goto out; } - if (state != MLX5_SQC_STATE_ERR) + if (state != MLX5_SQC_STATE_ERR) { + err = -EINVAL; goto out; + } mlx5e_deactivate_rq(rq); if (xskrq) -- 2.20.1.7.g153144c