瀏覽代碼

qcacld-3.0: Init ret for wlan_cfg80211_tdls_mgmt_mlo

Currently ret is not initialized and it can return
uninitialized value in some cases.

Change-Id: Ic70ad295108cc89bea371b78f6f14ca356706d2b
CRs-Fixed: 3491253
Paul Zhang 1 年之前
父節點
當前提交
1ab4d89a23
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      os_if/tdls/src/wlan_cfg80211_tdls.c

+ 1 - 1
os_if/tdls/src/wlan_cfg80211_tdls.c

@@ -1219,7 +1219,7 @@ wlan_cfg80211_tdls_mgmt_mlo(struct hdd_adapter *adapter, const uint8_t *peer,
 	bool link_id_vdev = false;
 	bool dis_req_more = false;
 	uint8_t i;
-	int ret;
+	int ret = 0;
 
 	vdev = hdd_objmgr_get_vdev_by_user(adapter->deflink, WLAN_OSIF_TDLS_ID);
 	if (!vdev)