Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp110074ybg; Mon, 8 Jun 2020 17:53:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz0K7EAg4iljsA4ZlOu9BEjoMaca3JfkUluTojmJSSaAI6xaomVvUne9yZePazomWPJvOlI X-Received: by 2002:a17:907:20cf:: with SMTP id qq15mr22550987ejb.238.1591663993466; Mon, 08 Jun 2020 17:53:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591663993; cv=none; d=google.com; s=arc-20160816; b=UbS64J0H9BqUgpuEQYK5t3WcbYtr8vKaWV/v0GchkBOeJ2IHO3505ovo5Jd7L0W4qV 5wsgc8QEa5y1RnUnhILCcwiNClvM2huBRQEnbkKifdbOovUL0YfxfK5iZIryKmx8/nWY ie6yk+8WzTNpVxCyzJHolhiquqY/bXN0cr3BOL+be/EVruq72nNCjWi5Y4BW3zPKa/qr SYumvNtENc9Si0EATfPOoUOJEnlo4fdafIEIRfuN6REOqPsY1dKhb+DSH2i+36yqea2f nlC56jemsHq+mh81ogav/nkqHpn/Vo9hQ+1pV5jsnGNb6zYeHbz10ZOKxIkGXZ+0qzua vWIA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=BgJqrD4ZN5+VOseqWz6wQIs6UDqPdUNvhu9v20TLhBo=; b=nKgV8RuiYJojxlLcaLOGjF1h4u0GERSj2s2Ne3pDzw4UiouLMzHMQt4g4p5aylJmw1 jFaykEHFmD8/oLAHBgbdiMYQLC2DdaB4BF3u3DUN6s6LpwD7yIzTmYTV0Hcl5AaJCksF MR3Yb/UIEakrngLntrZKjcwIT4DdGdjq87rtNoYPL1jE17L5kqJC6vaVVadN7imLycrE omvHdmTvVS8pBml7kfmHIrmDI+wp0/ABrx3TijWolxVq5ophaUPvh2C76JUrj/44HgSQ Awyx/k0XVc4yyGE/Hm8Fss7eost74kL6F6md+nLqKlgJNVhB0dZmI5HHwSiID9LOLkNR ETaA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=g5PfIN8k; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bc12si10067739edb.348.2020.06.08.17.52.50; Mon, 08 Jun 2020 17:53:13 -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; dkim=pass header.i=@kernel.org header.s=default header.b=g5PfIN8k; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728640AbgFHXKV (ORCPT + 99 others); Mon, 8 Jun 2020 19:10:21 -0400 Received: from mail.kernel.org ([198.145.29.99]:54998 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728378AbgFHXJQ (ORCPT ); Mon, 8 Jun 2020 19:09:16 -0400 Received: from sasha-vm.mshome.net (c-73-47-72-35.hsd1.nh.comcast.net [73.47.72.35]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id D3189208B6; Mon, 8 Jun 2020 23:09:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1591657756; bh=aOgu0g9xlZPhsRuxZF/YaPyGePnsKatsFp73rMdEAtg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=g5PfIN8kcJgLrcin0RNibw0ExNzjW2HIyBu5HtaqOGRf2KKHlOWAjn9GSeEADDtbC m8iKo7mi2WPjDcdIu36fNPRcggVG7zHIIxNKZ+aMpYc6VXFPONxYpvW5nkJmycygFv fhGf8IAzdGDp/i9cr9twxK3N2dyOX9yIQgcPvHGc= From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Roi Dayan , Saeed Mahameed , Sasha Levin , netdev@vger.kernel.org, linux-rdma@vger.kernel.org Subject: [PATCH AUTOSEL 5.7 142/274] net/mlx5e: CT: Avoid false warning about rule may be used uninitialized Date: Mon, 8 Jun 2020 19:03:55 -0400 Message-Id: <20200608230607.3361041-142-sashal@kernel.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200608230607.3361041-1-sashal@kernel.org> References: <20200608230607.3361041-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Roi Dayan [ Upstream commit 70a5698a5683cd504b03c6030ee622b1bec3f702 ] Avoid gcc warning by preset rule to invalid ptr. Fixes: 4c3844d9e97e ("net/mlx5e: CT: Introduce connection tracking") Signed-off-by: Roi Dayan Signed-off-by: Saeed Mahameed Signed-off-by: Sasha Levin --- drivers/net/ethernet/mellanox/mlx5/core/en/tc_ct.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/mellanox/mlx5/core/en/tc_ct.c b/drivers/net/ethernet/mellanox/mlx5/core/en/tc_ct.c index 4eb305af0106..1b22a0284fd9 100644 --- a/drivers/net/ethernet/mellanox/mlx5/core/en/tc_ct.c +++ b/drivers/net/ethernet/mellanox/mlx5/core/en/tc_ct.c @@ -1132,7 +1132,7 @@ mlx5_tc_ct_flow_offload(struct mlx5e_priv *priv, { bool clear_action = attr->ct_attr.ct_action & TCA_CT_ACT_CLEAR; struct mlx5_tc_ct_priv *ct_priv = mlx5_tc_ct_get_ct_priv(priv); - struct mlx5_flow_handle *rule; + struct mlx5_flow_handle *rule = ERR_PTR(-EINVAL); int err; if (!ct_priv) -- 2.25.1