Explorar o código

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 %!s(int64=6) %!d(string=hai) anos
pai
achega
a2a5e4345c
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      core/mac/src/sys/legacy/src/utils/src/parser_api.c

+ 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;