diff --git a/lib/env_dpdk/threads.c b/lib/env_dpdk/threads.c index 84298ae3a..ef6ed987e 100644 --- a/lib/env_dpdk/threads.c +++ b/lib/env_dpdk/threads.c @@ -64,6 +64,8 @@ spdk_env_get_last_core(void) last_core = i; } + assert(last_core != UINT32_MAX); + return last_core; }