소스 검색

qcacmn: Use ml dev context to deinit epcs ctx

The MLO dev context in VDEV is already made to NULL as
part of VDEV destroy and dereference of MLO dev ctx from
VDEV results in NULL pointer exception.

Change-Id: Idbbd625998aa09194ca533b0c8df2fd8e6d16d76
CRs-Fixed: 3570602
Vinod Kumar Pirla 1 년 전
부모
커밋
356ed4f407
1개의 변경된 파일4개의 추가작업 그리고 4개의 파일을 삭제
  1. 4 4
      umac/mlo_mgr/src/wlan_mlo_mgr_main.c

+ 4 - 4
umac/mlo_mgr/src/wlan_mlo_mgr_main.c

@@ -822,13 +822,13 @@ static inline void mlo_t2lm_ctx_deinit(struct wlan_objmgr_vdev *vdev)
 /**
  * mlo_epcs_ctx_deinit() - API to deinitialize the epcs context with the default
  * values.
- * @vdev: Pointer to vdev structure
+ * @mlo_dev_ctx: MLO dev context pointer
  *
  * Return: None
  */
-static inline void mlo_epcs_ctx_deinit(struct wlan_objmgr_vdev *vdev)
+static inline void mlo_epcs_ctx_deinit(struct wlan_mlo_dev_context *mlo_dev_ctx)
 {
-	epcs_dev_lock_destroy(&vdev->mlo_dev_ctx->epcs_ctx);
+	epcs_dev_lock_destroy(&mlo_dev_ctx->epcs_ctx);
 }
 
 #ifdef WLAN_FEATURE_ROAM_OFFLOAD
@@ -912,7 +912,7 @@ static QDF_STATUS mlo_dev_ctx_deinit(struct wlan_objmgr_vdev *vdev)
 		mlo_ptqm_migration_deinit(ml_dev);
 		mlo_mgr_link_switch_deinit(ml_dev);
 		mlo_t2lm_ctx_deinit(vdev);
-		mlo_epcs_ctx_deinit(vdev);
+		mlo_epcs_ctx_deinit(ml_dev);
 		tsf_recalculation_lock_destroy(ml_dev);
 		mlo_dev_lock_destroy(ml_dev);
 		qdf_mem_free(ml_dev);