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
此提交包含在:
Tushnim Bhattacharyya
2018-05-24 10:04:16 -07:00
提交者 nshrivas
父節點 c30f3933ff
當前提交 4e4be911ba

查看文件

@@ -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;