From 00ed527a142eab7c77a74e4315ed8592bc7fe6f7 Mon Sep 17 00:00:00 2001 From: Anurag Chouhan Date: Mon, 17 Oct 2016 17:22:55 +0530 Subject: [PATCH] qcacld-3.0: Update uninitialized variables & error handling Currently, In failure case the spin unlock is not taken care which is locked before, also the variables are initailized in specific senarios, with this change the variables are initialised properly. Change-Id: Ic6c40065e312dcd2e76dbf50304dfa8f4fb506e9 CRs-Fixed: 1073567 --- core/hdd/src/wlan_hdd_cfg80211.c | 2 +- core/hdd/src/wlan_hdd_napi.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/core/hdd/src/wlan_hdd_cfg80211.c b/core/hdd/src/wlan_hdd_cfg80211.c index c9f180bbb8..36a8a46a71 100644 --- a/core/hdd/src/wlan_hdd_cfg80211.c +++ b/core/hdd/src/wlan_hdd_cfg80211.c @@ -14461,7 +14461,7 @@ __wlan_hdd_cfg80211_set_ap_channel_width(struct wiphy *wiphy, hdd_context_t *pHddCtx; QDF_STATUS status; tSmeConfigParams sme_config; - bool cbModeChange; + bool cbModeChange = false; if (QDF_GLOBAL_FTM_MODE == hdd_get_conparam()) { hdd_err("Command not allowed in FTM mode"); diff --git a/core/hdd/src/wlan_hdd_napi.c b/core/hdd/src/wlan_hdd_napi.c index 4d4941a07d..3a20bff3e8 100644 --- a/core/hdd/src/wlan_hdd_napi.c +++ b/core/hdd/src/wlan_hdd_napi.c @@ -275,7 +275,7 @@ int hdd_napi_apply_throughput_policy(struct hdd_context_s *hddctx, uint64_t packets = tx_packets + rx_packets; enum qca_napi_tput_state req_state; struct qca_napi_data *napid = hdd_napi_get_all(); - int enabled; + int enabled = 0; NAPI_DEBUG("-->%s(tx=%lld, rx=%lld)", __func__, tx_packets, rx_packets);