Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ceff3970 authored by Amar Singhal's avatar Amar Singhal Committed by Gerrit - the friendly Code Review server
Browse files

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
parent 02ef13a3
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1861,7 +1861,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))