From d7d4a712cf341cb373553dac1eec445e3de38c65 Mon Sep 17 00:00:00 2001 From: Krzysztof Karas Date: Fri, 21 May 2021 08:55:30 +0200 Subject: [PATCH] spdk_top: change threads array inside refresh_threads_tab() Changes number of allocated elements to RPC_MAX_THREADS in *thread_info[] array inside refresh_threads_tab() to match other refresh functions. Signed-off-by: Krzysztof Karas Change-Id: If62faed463f42f232693f5bdaea70a5bb248891f Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/7993 Community-CI: Mellanox Build Bot Tested-by: SPDK CI Jenkins Reviewed-by: Ben Walker Reviewed-by: Shuhei Matsumoto --- app/spdk_top/spdk_top.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/spdk_top/spdk_top.c b/app/spdk_top/spdk_top.c index 0b5217eed..5ee20a563 100644 --- a/app/spdk_top/spdk_top.c +++ b/app/spdk_top/spdk_top.c @@ -940,7 +940,7 @@ refresh_threads_tab(uint8_t current_page) static uint8_t last_page = 0; char pollers_number[MAX_POLLER_COUNT_STR_LEN], idle_time[MAX_TIME_STR_LEN], busy_time[MAX_TIME_STR_LEN], core_str[MAX_CORE_MASK_STR_LEN]; - struct rpc_thread_info *thread_info[g_threads_stats.threads.threads_count]; + struct rpc_thread_info *thread_info[RPC_MAX_THREADS]; threads_count = g_threads_stats.threads.threads_count;