From 4e4be911bab0876ed2d970eed55d9d16adc05b85 Mon Sep 17 00:00:00 2001 From: Tushnim Bhattacharyya Date: Thu, 24 May 2018 10:04:16 -0700 Subject: [PATCH] qcacld-3.0: Initialize variable sap_ap_event in sap_signal_hdd_event Initialize variable sap_ap_event to avoid use of uninitialized value of sap_ap_event.sapHddEventCode when calling sap_ctx->pfnSapEventCallback. Change-Id: Idcf18b6c95ffcef59f0db764d0071fcb4909ea2e CRs-Fixed: 2232749 --- core/sap/src/sap_fsm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/sap/src/sap_fsm.c b/core/sap/src/sap_fsm.c index 58567f30ae53..ef008399471a 100644 --- a/core/sap/src/sap_fsm.c +++ b/core/sap/src/sap_fsm.c @@ -1450,7 +1450,7 @@ QDF_STATUS sap_signal_hdd_event(struct sap_context *sap_ctx, void *context) { QDF_STATUS qdf_status = QDF_STATUS_SUCCESS; - tSap_Event sap_ap_event; /* This now encodes ALL event types */ + tSap_Event sap_ap_event = {0}; tHalHandle hal = CDS_GET_HAL_CB(); tpAniSirGlobal mac_ctx; tSirSmeChanInfo *chaninfo;