Browse Source

qcacld-3.0: Initialize peer_timer_bitmask

peer_timer_bitmask of hang_data was uninitialized which may
contain a garbage value.
Initialized the variable with 0.

Change-Id: I5875bb0d121bcbf14a2afc9efec6697cf4b4dba4
CRs-Fixed: 2680955
Ananya Gupta 4 years ago
parent
commit
16c13ea0b8
1 changed files with 1 additions and 0 deletions
  1. 1 0
      core/dp/txrx/ol_txrx.c

+ 1 - 0
core/dp/txrx/ol_txrx.c

@@ -3365,6 +3365,7 @@ int ol_peer_recovery_notifier_cb(struct notifier_block *block,
 	if (!peer)
 		return -EINVAL;
 
+	hang_data.peer_timeout_bitmask = 0;
 	QDF_HANG_EVT_SET_HDR(&hang_data.tlv_header,
 			     HANG_EVT_TAG_DP_PEER_INFO,
 			     QDF_HANG_GET_STRUCT_TLVLEN(struct peer_hang_data));