git.droids-corp.org
/
dpdk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3de9af2
)
net/i40e: fix negative VEB index
author
Chengwen Feng
<fengchengwen@huawei.com>
Wed, 21 Apr 2021 02:33:13 +0000
(10:33 +0800)
committer
Qi Zhang
<qi.z.zhang@intel.com>
Fri, 23 Apr 2021 08:59:22 +0000
(10:59 +0200)
This patch adds check for negative VEB index when parsing VEB list.
Fixes:
79f2248219c0
("net/i40e: add floating VEB option")
Cc: stable@dpdk.org
Signed-off-by: Chengwen Feng <fengchengwen@huawei.com>
Signed-off-by: Min Hu (Connor) <humin29@huawei.com>
Acked-by: Qi Zhang <qi.z.zhang@intel.com>
drivers/net/i40e/i40e_ethdev.c
patch
|
blob
|
history
diff --git
a/drivers/net/i40e/i40e_ethdev.c
b/drivers/net/i40e/i40e_ethdev.c
index
66d23d6
..
d058620
100644
(file)
--- a/
drivers/net/i40e/i40e_ethdev.c
+++ b/
drivers/net/i40e/i40e_ethdev.c
@@
-854,6
+854,8
@@
floating_veb_list_handler(__rte_unused const char *key,
idx = strtoul(floating_veb_value, &end, 10);
if (errno || end == NULL)
return -1;
+ if (idx < 0)
+ return -1;
while (isblank(*end))
end++;
if (*end == '-') {