mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-13 16:16:15 -04:00
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:
parent
3abd7300a5
commit
0fa8ee06b3
1 changed files with 1 additions and 0 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in a new issue