* [PATCH] net/hns3: fix uninitialized value
@ 2024-07-23 6:09 Jie Hai
2024-07-23 8:04 ` Ferruh Yigit
0 siblings, 1 reply; 2+ messages in thread
From: Jie Hai @ 2024-07-23 6:09 UTC (permalink / raw)
To: dev, ferruh.yigit, Yisen Zhuang, Wei Hu (Xavier), Min Hu (Connor),
Chengchang Tang, Chengwen Feng
Cc: lihuisong
This patch fixes uninitialized auto_state value when
querying FEC mode of device.
Bugzilla ID: 1498
Fixes: 9bf2ea8dbc65 ("net/hns3: support FEC")
Cc: stable@dpdk.org
Signed-off-by: Jie Hai <haijie1@huawei.com>
Acked-by: Huisong Li <lihuisong@huawei.com>
Acked-by: Chengwen Feng <fengchengwen@huawei.com>
---
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 ec1251cb7ead..8b43d731acae 100644
--- a/drivers/net/hns3/hns3_ethdev.c
+++ b/drivers/net/hns3/hns3_ethdev.c
@@ -6046,7 +6046,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.33.0
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] net/hns3: fix uninitialized value
2024-07-23 6:09 [PATCH] net/hns3: fix uninitialized value Jie Hai
@ 2024-07-23 8:04 ` Ferruh Yigit
0 siblings, 0 replies; 2+ messages in thread
From: Ferruh Yigit @ 2024-07-23 8:04 UTC (permalink / raw)
To: Jie Hai, dev, Yisen Zhuang, Wei Hu (Xavier), Min Hu (Connor),
Chengchang Tang, Chengwen Feng
Cc: lihuisong
On 7/23/2024 7:09 AM, Jie Hai wrote:
> This patch fixes uninitialized auto_state value when
> querying FEC mode of device.
>
> Bugzilla ID: 1498
> Fixes: 9bf2ea8dbc65 ("net/hns3: support FEC")
> Cc: stable@dpdk.org
>
> Signed-off-by: Jie Hai <haijie1@huawei.com>
> Acked-by: Huisong Li <lihuisong@huawei.com>
> Acked-by: Chengwen Feng <fengchengwen@huawei.com>
>
Applied to dpdk-next-net/main, thanks.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-07-23 8:15 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-07-23 6:09 [PATCH] net/hns3: fix uninitialized value Jie Hai
2024-07-23 8:04 ` Ferruh Yigit
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).