Projects
Eulaceura:Mainline
dpdk
_service:obs_scm:0040-net-hns3-fix-variable-ove...
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:obs_scm:0040-net-hns3-fix-variable-overflow.patch of Package dpdk
From 262dd61124d4fe105af5d36e2a01f7ed6865aa48 Mon Sep 17 00:00:00 2001 From: Dengdui Huang <huangdengdui@huawei.com> Date: Wed, 3 Apr 2024 18:16:22 +0800 Subject: [PATCH 40/42] 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 <huangdengdui@huawei.com> Signed-off-by: Jie Hai <haijie1@huawei.com> --- 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 28c26b0..5e6cdfd 100644 --- a/drivers/net/hns3/hns3_common.c +++ b/drivers/net/hns3/hns3_common.c @@ -224,7 +224,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
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.
浙ICP备2022010568号-2