mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-25 14:13:01 -04:00
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
This commit is contained in:
parent
9fa0e8e014
commit
06b539af65
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue