diff options
| author | Abhinav Kumar <abhikuma@codeaurora.org> | 2018-06-26 18:36:32 +0530 |
|---|---|---|
| committer | nshrivas <nshrivas@codeaurora.org> | 2018-07-03 04:02:47 -0700 |
| commit | 2acfa0cf96ef46272867124294d6fe74e179dcd0 (patch) | |
| tree | 7f3fb2d833ba8eef302dce861fabf499c5470b5c /core/mac/src | |
| parent | 5c1ee14a9750d1609ff6b56145d77af0c3301f87 (diff) | |
qcacld-3.0: Fix use of Uninitialized variable
While Handling CSA offload message, lim_handle_csa_offload_msg
uses some uninitialized elements of structure ch_params results
use of an uninitialized variable issue.
To resolve this issue, Initialize structure ch_params in
lim_handle_csa_offload_msg.
Change-Id: Ic23957ac3e77d500f32892d88f281d960f7340cd
CRs-Fixed: 2268542
Diffstat (limited to 'core/mac/src')
| -rw-r--r-- | core/mac/src/pe/lim/lim_send_sme_rsp_messages.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/mac/src/pe/lim/lim_send_sme_rsp_messages.c b/core/mac/src/pe/lim/lim_send_sme_rsp_messages.c index 36a1419ea126..d21b1b12d15f 100644 --- a/core/mac/src/pe/lim/lim_send_sme_rsp_messages.c +++ b/core/mac/src/pe/lim/lim_send_sme_rsp_messages.c @@ -2193,7 +2193,7 @@ void lim_handle_csa_offload_msg(tpAniSirGlobal mac_ctx, tpSirMsgQ msg) uint8_t session_id; uint16_t aid = 0; uint16_t chan_space = 0; - struct ch_params_s ch_params; + struct ch_params_s ch_params = {0}; tLimWiderBWChannelSwitchInfo *chnl_switch_info = NULL; tLimChannelSwitchInfo *lim_ch_switch = NULL; |
