From ea82d5638b5311a33b9c500371c70b7fa16602d1 Mon Sep 17 00:00:00 2001 From: Dustin Brown Date: Wed, 23 May 2018 12:07:16 -0700 Subject: [PATCH] qcacld-3.0: Fix use-after-free in hdd_we_set_11d_state In hdd_we_set_11d_state(), @sme_config is accessed immediately after being freed. Avoid accessing freed memory. Change-Id: I7ad19f6846bce1d0f99b7712f1036c81ea363815 CRs-Fixed: 2247652 --- core/hdd/src/wlan_hdd_wext.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/hdd/src/wlan_hdd_wext.c b/core/hdd/src/wlan_hdd_wext.c index 98de25a4c222..07e1166f47cf 100644 --- a/core/hdd/src/wlan_hdd_wext.c +++ b/core/hdd/src/wlan_hdd_wext.c @@ -4100,7 +4100,7 @@ static int hdd_we_set_11d_state(struct hdd_context *hdd_ctx, int state_11d) qdf_mem_free(sme_config); - hdd_debug("11D state=%d", sme_config->csrConfig.Is11dSupportEnabled); + hdd_debug("11D state=%d", enable_11d); return 0; }