Forráskód Böngészése

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
Ashish Kumar Dhanotiya 8 éve
szülő
commit
0fa8ee06b3
1 módosított fájl, 1 hozzáadás és 0 törlés
  1. 1 0
      core/hdd/src/wlan_hdd_cfg80211.c

+ 1 - 0
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,