Parcourir la source

qcacld-3.0: Fix null pointer dereference in tdls_set_ct_mode

Fix null pointer dereference of tlds_soc_obj if
tdls_get_vdev_objects() returns failure.

Change-Id: Ibd6e38b834d7182b240a9bfaf176dbf47b32b1b7
CRs-Fixed: 3491244
Pragaspathi Thilagaraj il y a 1 an
Parent
commit
116e201f3e
1 fichiers modifiés avec 1 ajouts et 2 suppressions
  1. 1 2
      components/tdls/core/src/wlan_tdls_main.c

+ 1 - 2
components/tdls/core/src/wlan_tdls_main.c

@@ -1034,8 +1034,7 @@ void tdls_set_ct_mode(struct wlan_objmgr_psoc *psoc,
 	status = tdls_get_vdev_objects(vdev, &tdls_vdev_obj, &tdls_soc_obj);
 	if (QDF_IS_STATUS_ERROR(status)) {
 		tdls_err("Failed to get TDLS objects");
-		state = false;
-		goto set_state;
+		return;
 	}
 
 	qdf_atomic_set(&tdls_soc_obj->timer_cnt, 0);