Code Review
/
vpp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
409ef61
)
threads: add assert to silence coverity warning
07/3807/2
author
Damjan Marion
<damarion@cisco.com>
Mon, 14 Nov 2016 09:22:48 +0000
(10:22 +0100)
committer
Neale Ranns
<nranns@cisco.com>
Tue, 15 Nov 2016 11:08:30 +0000
(11:08 +0000)
Change-Id: I381786b26050f2dfcb4c74094309cf2114d26d85
Signed-off-by: Damjan Marion <damarion@cisco.com>
vlib/vlib/threads_cli.c
patch
|
blob
|
history
diff --git
a/vlib/vlib/threads_cli.c
b/vlib/vlib/threads_cli.c
index
631fe0c
..
70bf729
100644
(file)
--- a/
vlib/vlib/threads_cli.c
+++ b/
vlib/vlib/threads_cli.c
@@
-109,6
+109,7
@@
show_threads_fn (vlib_main_t * vm,
line = format (line, "%-7u%-7u%-7u%", lcore, core_id, socket_id);
#if DPDK==1
+ ASSERT (lcore <= RTE_MAX_LCORE);
switch (lcore_config[lcore].state)
{
case WAIT: