From 88fe688b023c5f652be22519302b305dc586c5bd Mon Sep 17 00:00:00 2001 From: Dengdui Huang Date: Wed, 3 Apr 2024 18:16:22 +0800 Subject: [PATCH 425/431] net/hns3: fix variable overflow [ upstream commit 861bfb275cb4aea37253c3171f922a0131afb1a3 ] The function strtoul() returns an unsigned long, which should be received using the variable uint64_t. Fixes: 2fc3e696a7f1 ("net/hns3: add runtime config for mailbox limit time") Cc: stable@dpdk.org Signed-off-by: Dengdui Huang Signed-off-by: Jie Hai Signed-off-by: chenyi --- drivers/net/hns3/hns3_common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/hns3/hns3_common.c b/drivers/net/hns3/hns3_common.c index 717649f259..d880dc9c54 100644 --- a/drivers/net/hns3/hns3_common.c +++ b/drivers/net/hns3/hns3_common.c @@ -222,7 +222,7 @@ hns3_parse_dev_caps_mask(const char *key, const char *value, void *extra_args) static int hns3_parse_mbx_time_limit(const char *key, const char *value, void *extra_args) { - uint32_t val; + uint64_t val; RTE_SET_USED(key); -- 2.33.0