threads: add assert to silence coverity warning 07/3807/2
authorDamjan Marion <damarion@cisco.com>
Mon, 14 Nov 2016 09:22:48 +0000 (10:22 +0100)
committerNeale 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

index 631fe0c..70bf729 100644 (file)
@@ -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: