From 8107b66d8fede11a66bc0cfbf6036a3f68dc8a0f Mon Sep 17 00:00:00 2001 From: chenguo Date: Wed, 13 Dec 2017 16:31:13 +0800 Subject: [PATCH] qcacmn: Fix NR_CPUS overflow for one byte data structure For one byte data structure of unsigned type, it is expected that the maximum value is 255. However, NR_CPUS is 512 in x86 setup of Napier. CRs-Fixed: 2158203 Change-Id: I057fb0cf3c11e687dfdd6cd2295b16743297d561 --- dp/wifi3.0/dp_main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dp/wifi3.0/dp_main.c b/dp/wifi3.0/dp_main.c index 502d680955b7..e08bef73ab02 100644 --- a/dp/wifi3.0/dp_main.c +++ b/dp/wifi3.0/dp_main.c @@ -5205,7 +5205,8 @@ static void dp_print_napi_stats(struct dp_soc *soc) */ static void dp_print_per_ring_stats(struct dp_soc *soc) { - uint8_t core, ring; + uint8_t ring; + uint16_t core; uint64_t total_packets; DP_TRACE(FATAL, "Reo packets per ring:");