Преглед на файлове

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
jitiphil преди 6 години
родител
ревизия
06b539af65
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      core/wma/src/wma_utils.c

+ 1 - 1
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);