From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 1F7F14569C for ; Wed, 24 Jul 2024 13:35:09 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 1AB1F433FC; Wed, 24 Jul 2024 13:35:09 +0200 (CEST) Received: from mail-wm1-f45.google.com (mail-wm1-f45.google.com [209.85.128.45]) by mails.dpdk.org (Postfix) with ESMTP id 02A56433FA for ; Wed, 24 Jul 2024 13:35:08 +0200 (CEST) Received: by mail-wm1-f45.google.com with SMTP id 5b1f17b1804b1-4272738eb9eso50399575e9.3 for ; Wed, 24 Jul 2024 04:35:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1721820907; x=1722425707; darn=dpdk.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=vDQ/WrG8ukH5Rfb5+34I30bxtGUqCjUzaBSLAQdFhy4=; b=YWXN88T8gEIvI2Z5gsF1L28kQDznjh+a8j71FxH03iOyvO3WxVBTtXpkEcY8kZoBlR G2dmstAHcxurBfZ9qTV7OqRS1kRlEBPpkYWm9/aVU78OlaOg6CQQY5Yqq4210SEvRgsA CN4sDtbdzhfn21ku/rx7+LDJYdZPCiuksKkRrlGFPYW8X0kWEWp8on1ZhlJx3MNj7lgd niu+WJ1K4nC4veb/fArjTUzZQDLdCkH2pVTYOiENncBQhW3gfHSTcmti+dnJCExGtYxT P0zw89tUhFgPl1T4euf9WwmRQZ6QOamlkFwDbiU1Ab6R2xHgNH+WGxUZV/2+mBc3dcek I2XQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1721820907; x=1722425707; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=vDQ/WrG8ukH5Rfb5+34I30bxtGUqCjUzaBSLAQdFhy4=; b=GZSL2IMaTmbe1tn00+ITKRi5U6w6jHCLdiWr7H+p30rew5pySeuhsx1jjTl2bcP5Ng gEBKk9ZYru4yGZ7OFND9aigAFgcjlH9xvhWL2Kippn6b0h7uweLc/RYXvGsKinsLHNda HXQ6GZ5EfTI2UOunlps7yyEXuL5OKv/E/9sbfqbTIGz7rkm2qbq8dcwPETIpLBeGG9jx wUD37an3h0E5AFRAWHkA/JhXN8WgN2tqPVXFs8BfEXQgMG6s+P5fkI6jhW6bsLoHCMiE CPL2eLICByMXLjmwBLQpI48fhFkCI3AMEdJ9MIL4ENdUri+ilfRWHRTrrN+1gfj8fTIu LbEQ== X-Forwarded-Encrypted: i=1; AJvYcCUYgnjm4vn1ZRL3D8A+vsTyDyqRHPS9ycKM/zF9pw3SRN8SxSVWm4vCZvgVWlrjANcmO28OZr0kBd7H0RzdVUU= X-Gm-Message-State: AOJu0YzdlRnEia3SY6OSGPu0NRRtwsZZYYEblBRUtQPJ3fvBCIA/hJ2r GElrVdxRuIgATvdtJu9ChdshSm7J+sI0x+Hye+dEkKY96t1zqkCdAPq711Agmhc= X-Google-Smtp-Source: AGHT+IGJmQrl0NGPT93fWALalWosfQm6ywzZeGwL9GT4gyyENSdv25a9wIMwXNVzQ4Mas+UxgcCdFg== X-Received: by 2002:adf:f70f:0:b0:367:f13b:ae8c with SMTP id ffacd0b85a97d-369f5af3acemr1088712f8f.47.1721820907417; Wed, 24 Jul 2024 04:35:07 -0700 (PDT) Received: from localhost ([137.220.120.171]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-368787ed580sm13970834f8f.112.2024.07.24.04.35.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Jul 2024 04:35:06 -0700 (PDT) From: luca.boccassi@gmail.com To: Jie Hai Cc: Huisong Li , Chengwen Feng , dpdk stable Subject: patch 'net/hns3: fix uninitialized variable in FEC query' has been queued to stable release 22.11.6 Date: Wed, 24 Jul 2024 12:33:13 +0100 Message-Id: <20240724113318.616754-35-luca.boccassi@gmail.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240724113318.616754-1-luca.boccassi@gmail.com> References: <20240715152704.2229503-86-luca.boccassi@gmail.com> <20240724113318.616754-1-luca.boccassi@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org Hi, FYI, your patch has been queued to stable release 22.11.6 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 07/26/24. So please shout if anyone has objections. Also note that after the patch there's a diff of the upstream commit vs the patch applied to the branch. This will indicate if there was any rebasing needed to apply to the stable branch. If there were code changes for rebasing (ie: not only metadata diffs), please double check that the rebase was correctly done. Queued patches are on a temporary branch at: https://github.com/bluca/dpdk-stable This queued commit can be viewed at: https://github.com/bluca/dpdk-stable/commit/4568f7b753c55954f947724496ab237dab9feaf9 Thanks. Luca Boccassi --- >From 4568f7b753c55954f947724496ab237dab9feaf9 Mon Sep 17 00:00:00 2001 From: Jie Hai Date: Tue, 23 Jul 2024 14:09:00 +0800 Subject: [PATCH] net/hns3: fix uninitialized variable in FEC query [ upstream commit 7dfc8e69aa4286854a0ac893d3828eaffee20347 ] This patch fixes uninitialized auto_state value when querying FEC mode of device. Bugzilla ID: 1498 Fixes: 9bf2ea8dbc65 ("net/hns3: support FEC") Signed-off-by: Jie Hai Acked-by: Huisong Li Acked-by: Chengwen Feng --- drivers/net/hns3/hns3_ethdev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/hns3/hns3_ethdev.c b/drivers/net/hns3/hns3_ethdev.c index 2c32f48af6..0050d46ae7 100644 --- a/drivers/net/hns3/hns3_ethdev.c +++ b/drivers/net/hns3/hns3_ethdev.c @@ -6080,7 +6080,7 @@ hns3_fec_get_internal(struct hns3_hw *hw, uint32_t *fec_capa) { struct hns3_sfp_info_cmd *resp; uint32_t tmp_fec_capa; - uint8_t auto_state; + uint8_t auto_state = 0; struct hns3_cmd_desc desc; int ret; -- 2.39.2 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2024-07-24 12:29:23.173870560 +0100 +++ 0035-net-hns3-fix-uninitialized-variable-in-FEC-query.patch 2024-07-24 12:29:20.815027016 +0100 @@ -1 +1 @@ -From 7dfc8e69aa4286854a0ac893d3828eaffee20347 Mon Sep 17 00:00:00 2001 +From 4568f7b753c55954f947724496ab237dab9feaf9 Mon Sep 17 00:00:00 2001 @@ -5,0 +6,2 @@ +[ upstream commit 7dfc8e69aa4286854a0ac893d3828eaffee20347 ] + @@ -11 +12,0 @@ -Cc: stable@dpdk.org @@ -21 +22 @@ -index ec1251cb7e..8b43d731ac 100644 +index 2c32f48af6..0050d46ae7 100644 @@ -24 +25 @@ -@@ -6046,7 +6046,7 @@ hns3_fec_get_internal(struct hns3_hw *hw, uint32_t *fec_capa) +@@ -6080,7 +6080,7 @@ hns3_fec_get_internal(struct hns3_hw *hw, uint32_t *fec_capa)