mirror of
https://github.com/Divested-Mobile/DivestOS-Build.git
synced 2024-12-20 21:34:24 -05:00
31 lines
1.3 KiB
Diff
31 lines
1.3 KiB
Diff
From 9e08c4d35fc520e9c375884abdf04493e157a0ea Mon Sep 17 00:00:00 2001
|
|
From: Ashish Kumar Dhanotiya <adhanoti@codeaurora.org>
|
|
Date: Thu, 6 Jul 2017 16:51:53 +0530
|
|
Subject: [PATCH] qcacld-2.0: Fix Uninitialized memory issue
|
|
|
|
There is a possibility to read uninitialized memory within api
|
|
__wlan_hdd_cfg80211_testmode.
|
|
|
|
To resolve this issue, initilaize buffer hb_params with zero.
|
|
|
|
Bug: 62456806
|
|
Change-Id: Ia8061610a8c35aa7290177c0dcd2c5c36d9fcb35
|
|
CRs-Fixed: 2061755
|
|
Signed-off-by: Ecco Park <eccopark@google.com>
|
|
---
|
|
drivers/staging/qcacld-2.0/CORE/HDD/src/wlan_hdd_cfg80211.c | 1 +
|
|
1 file changed, 1 insertion(+)
|
|
|
|
diff --git a/drivers/staging/qcacld-2.0/CORE/HDD/src/wlan_hdd_cfg80211.c b/drivers/staging/qcacld-2.0/CORE/HDD/src/wlan_hdd_cfg80211.c
|
|
index 13956f9063ede..9338b4b98ed5e 100644
|
|
--- a/drivers/staging/qcacld-2.0/CORE/HDD/src/wlan_hdd_cfg80211.c
|
|
+++ b/drivers/staging/qcacld-2.0/CORE/HDD/src/wlan_hdd_cfg80211.c
|
|
@@ -21990,6 +21990,7 @@ static int __wlan_hdd_cfg80211_testmode(struct wiphy *wiphy,
|
|
return -ENOMEM;
|
|
}
|
|
|
|
+ vos_mem_zero(hb_params, sizeof(tSirLPHBReq));
|
|
vos_mem_copy(hb_params, buf, buf_len);
|
|
smeStatus = sme_LPHBConfigReq((tHalHandle)(pHddCtx->hHal),
|
|
hb_params,
|