Explorar el Código

qcacmn: Properly initialize pkt ptr record

Initialize packet pointer record is_free_pkt_ptr_record to false.
The code flow may not assign the pointer before usage.

Change-Id: I00a4dc0eaf7e426ce48ec746eba975b74d1fec34
CRs-Fixed: 2313459
Amar Singhal hace 6 años
padre
commit
413f3e289f
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      qdf/linux/src/qdf_trace.c

+ 1 - 1
qdf/linux/src/qdf_trace.c

@@ -1982,7 +1982,7 @@ void qdf_dp_display_ptr_record(struct qdf_dp_trace_record_s *record,
 	char prepend_str[QDF_DP_TRACE_PREPEND_STR_SIZE];
 	struct qdf_dp_trace_ptr_buf *buf =
 		(struct qdf_dp_trace_ptr_buf *)record->data;
-	bool is_free_pkt_ptr_record;
+	bool is_free_pkt_ptr_record = false;
 
 	if ((record->code == QDF_DP_TRACE_FREE_PACKET_PTR_RECORD) ||
 	    (record->code == QDF_DP_TRACE_LI_DP_FREE_PACKET_PTR_RECORD))