From 7a6c327af3c968c4035d30d363c183cc423b5611 Mon Sep 17 00:00:00 2001 From: Kiran Kumar Lokere Date: Mon, 3 Jun 2019 15:45:18 -0700 Subject: [PATCH] qcacld-3.0: Fix possible NULL dereference Check the station data structure for NULL dereference before accessing it. Change-Id: Id719a77e0de36767bd699caacf507cf4f7bb8fc6 CRs-Fixed: 2462587 --- core/mac/src/pe/lim/lim_process_mlm_rsp_messages.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/mac/src/pe/lim/lim_process_mlm_rsp_messages.c b/core/mac/src/pe/lim/lim_process_mlm_rsp_messages.c index ac18c7081e..6d3f56e4cb 100644 --- a/core/mac/src/pe/lim/lim_process_mlm_rsp_messages.c +++ b/core/mac/src/pe/lim/lim_process_mlm_rsp_messages.c @@ -1539,7 +1539,7 @@ void lim_process_sta_mlm_add_sta_rsp(struct mac_context *mac_ctx, mlm_assoc_cnf.resultCode = (tSirResultCodes) eSIR_SME_SUCCESS; lim_send_obss_color_collision_cfg(mac_ctx, session_entry, OBSS_COLOR_COLLISION_DETECTION); - if (lim_is_session_he_capable(session_entry)) { + if (lim_is_session_he_capable(session_entry) && sta_ds) { if (mac_ctx->usr_cfg_mu_edca_params) { pe_debug("Send user cfg MU EDCA params to FW"); lim_send_edca_params(mac_ctx,