Explorar el Código

qcacld-3.0: Fix use of Uninitialized Variable

Possible use of uninitialized Variable "report" in
rrm_process_beacon_req.

Fix is to initialize "report" pointer to NULL,
before use.

Change-Id: I1dcbec60b0028d52046ce28836df83a04e2ed830
CRs-Fixed: 2734078
Abhinav Kumar hace 4 años
padre
commit
352a22a199
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      core/mac/src/pe/rrm/rrm_api.c

+ 1 - 1
core/mac/src/pe/rrm/rrm_api.c

@@ -1211,7 +1211,7 @@ QDF_STATUS rrm_process_beacon_req(struct mac_context *mac_ctx, tSirMacAddr peer,
 				  uint8_t *num_report, int index)
 {
 	tRrmRetStatus rrm_status = eRRM_SUCCESS;
-	tpSirMacRadioMeasureReport report;
+	tpSirMacRadioMeasureReport report = NULL;
 	tpRRMReq curr_req;
 	QDF_STATUS status = QDF_STATUS_SUCCESS;