Browse Source

qcacld-3.0: Fix possible NULL dereference

Check the station data structure for NULL dereference before
accessing it.

Change-Id: Id719a77e0de36767bd699caacf507cf4f7bb8fc6
CRs-Fixed: 2462587
Kiran Kumar Lokere 5 years ago
parent
commit
7a6c327af3
1 changed files with 1 additions and 1 deletions
  1. 1 1
      core/mac/src/pe/lim/lim_process_mlm_rsp_messages.c

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