Prechádzať zdrojové kódy

qcacld-3.0: Fix issue in populate_dot11f_twt_extended_caps

Fix using uninitialized variable status inside the function
populate_dot11f_twt_extended_caps

Change-Id: Ic80df2f6c5310414da4179f00867c0fe029b09c7
CRs-Fixed: 2277833
Varun Reddy Yeturu 6 rokov pred
rodič
commit
a2a5e4345c

+ 1 - 1
core/mac/src/sys/legacy/src/utils/src/parser_api.c

@@ -6418,7 +6418,7 @@ QDF_STATUS populate_dot11f_twt_extended_caps(tpAniSirGlobal mac_ctx,
 					     tDot11fIEExtCap *dot11f)
 {
 	uint32_t value = 0;
-	QDF_STATUS status;
+	QDF_STATUS status = QDF_STATUS_E_FAILURE;
 	struct s_ext_cap *p_ext_cap;
 
 	dot11f->num_bytes = DOT11F_IE_EXTCAP_MAX_LEN;