From 0fa8ee06b39d451169d8f308ecabeb3346513fd8 Mon Sep 17 00:00:00 2001 From: Ashish Kumar Dhanotiya Date: Thu, 13 Jul 2017 14:04:31 +0530 Subject: [PATCH] qcacld-3.0: Fix Uninitialized memory issue Propagation from qcacld-2.0 to qcacld-3.0. There is a possibility to read uninitialized memory within api __wlan_hdd_cfg80211_testmode. To resolve this issue, initilaize buffer hb_params with zero. Change-Id: Ia8061610a8c35aa7290177c0dcd2c5c36d9fcb35 CRs-Fixed: 2075796 --- core/hdd/src/wlan_hdd_cfg80211.c | 1 + 1 file changed, 1 insertion(+) diff --git a/core/hdd/src/wlan_hdd_cfg80211.c b/core/hdd/src/wlan_hdd_cfg80211.c index ce2505fe1788..05a894bc4ea9 100644 --- a/core/hdd/src/wlan_hdd_cfg80211.c +++ b/core/hdd/src/wlan_hdd_cfg80211.c @@ -17491,6 +17491,7 @@ static int __wlan_hdd_cfg80211_testmode(struct wiphy *wiphy, return -ENOMEM; } + qdf_mem_zero(hb_params, sizeof(*hb_params)); qdf_mem_copy(hb_params, buf, buf_len); status = pmo_ucfg_lphb_config_req(pHddCtx->hdd_psoc, hb_params, (void *)pHddCtx,