From 06b539af65d31e646843cc94b2a82e7677574c7f Mon Sep 17 00:00:00 2001 From: jitiphil Date: Thu, 7 Jun 2018 16:31:48 +0530 Subject: [PATCH] qcacld-3.0: Compilation error due to uninitialization of buf_len In wma_unified_link_peer_stats_event_handler() we are checking if buf_len is of proper value. At this point buf_len is may be uninitialized, thus causing a compilation issue. Initialize buf_len before use in the validation check. Change-Id: Ia19de3c5c8bcd154670a44a9dafca31c6bf0b76b CRs-Fixed: 2256229 --- core/wma/src/wma_utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/wma/src/wma_utils.c b/core/wma/src/wma_utils.c index b3e8407a01d5..6b26d0e829a4 100644 --- a/core/wma/src/wma_utils.c +++ b/core/wma/src/wma_utils.c @@ -1242,7 +1242,7 @@ static int wma_unified_link_peer_stats_event_handler(void *handle, size_t peer_info_size, peer_stats_size, rate_stats_size; size_t link_stats_results_size; bool excess_data = false; - uint32_t buf_len; + uint32_t buf_len = 0; tpAniSirGlobal pMac = cds_get_context(QDF_MODULE_ID_PE);