Ver código fonte

qcacld-3.0: Fix uninitialized variable in lim_handle_csa_offload_msg()

Fix uinitialized variable in lim_handle_csa_offload_msg() API.

CRs-Fixed: 2232736
Change-Id: Ie9e918780af2407796359cfc293bf227a69385b2
Krunal Soni 7 anos atrás
pai
commit
e2c45a9aa6
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      core/mac/src/pe/lim/lim_send_sme_rsp_messages.c

+ 1 - 1
core/mac/src/pe/lim/lim_send_sme_rsp_messages.c

@@ -1942,7 +1942,7 @@ void lim_handle_csa_offload_msg(tpAniSirGlobal mac_ctx,
 	uint8_t session_id;
 	uint16_t aid = 0;
 	uint16_t chan_space = 0;
-	struct ch_params ch_params;
+	struct ch_params ch_params = {0};
 
 	tLimWiderBWChannelSwitchInfo *chnl_switch_info = NULL;
 	tLimChannelSwitchInfo *lim_ch_switch = NULL;