From 0158814ea90127284bfef14b52db4aa7fa48940a Mon Sep 17 00:00:00 2001 From: Sravan Goud Date: Mon, 30 Sep 2019 18:27:28 +0530 Subject: [PATCH] qcacld-3.0: Initialize uninitialized variable Current code in __hdd_bus_bw_work_handler function there is a possibility of variables sta_tx_bytes and sap_tx_bytes uninitialized. Improve the code by initializing the variable. Change-Id: I6e21350267e9ff7a5b3a5cb5b3f3166d26121c8a CRs-Fixed: 2536318 --- core/hdd/src/wlan_hdd_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/hdd/src/wlan_hdd_main.c b/core/hdd/src/wlan_hdd_main.c index 3b9ef3ed4027..57db9b970719 100644 --- a/core/hdd/src/wlan_hdd_main.c +++ b/core/hdd/src/wlan_hdd_main.c @@ -8552,7 +8552,7 @@ static void __hdd_bus_bw_work_handler(struct hdd_context *hdd_ctx) A_STATUS ret; bool connected = false; uint32_t ipa_tx_packets = 0, ipa_rx_packets = 0; - uint64_t sta_tx_bytes, sap_tx_bytes; + uint64_t sta_tx_bytes = 0, sap_tx_bytes = 0; if (wlan_hdd_validate_context(hdd_ctx)) goto stop_work;