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
This commit is contained in:
Ashish Kumar Dhanotiya 2017-07-13 14:04:31 +05:30 • committed by snandini
commit 0fa8ee06b3

View file

@ -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,