From a3cac40b8dfa506fdabb2d49efa00ee8bf700dd2 Mon Sep 17 00:00:00 2001 From: Sandeep Puligilla Date: Tue, 3 Oct 2017 12:42:43 -0700 Subject: [PATCH] qcacld-3.0: Initialize the pmkid cache variable Invalid memory length passed to memcpy triggered crash and it is due to unintialized stack variable. Initialize pmkid cache variable to zero. Change-Id: Ib25812086f4d9f8399ce560d6aa7423a1978d04d CRs-Fixed: 2119987 --- core/sme/src/csr/csr_util.c | 1 + 1 file changed, 1 insertion(+) diff --git a/core/sme/src/csr/csr_util.c b/core/sme/src/csr/csr_util.c index 0b0b8ddcb87c..63c0dc0b533e 100644 --- a/core/sme/src/csr/csr_util.c +++ b/core/sme/src/csr/csr_util.c @@ -3815,6 +3815,7 @@ uint8_t csr_construct_rsn_ie(tHalHandle hHal, uint32_t sessionId, tDot11fBeaconIEs *pIesLocal = pIes; eCsrAuthType negAuthType = eCSR_AUTH_TYPE_UNKNOWN; + qdf_mem_zero(&pmkid_cache, sizeof(pmkid_cache)); do { if (!csr_is_profile_rsn(pProfile)) break;