浏览代码

qcacmn: Clear the ml context of be_soc structure

After the teardown of the SOC, clear the reference to mlo context
from the DP soc structure for BE targets to avoid dangling pointer.

CRs-Fixed: 3382787
Change-Id: Ia30a234641d671ea6a4f5bcc194571ab6db49e42
Sreeramya Soratkal 2 年之前
父节点
当前提交
257cd61b4d
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      dp/wifi3.0/be/mlo/dp_mlo.c

+ 1 - 0
dp/wifi3.0/be/mlo/dp_mlo.c

@@ -304,6 +304,7 @@ static void dp_mlo_soc_teardown(struct cdp_soc_t *soc_hdl,
 				   NULL);
 
 	dp_mlo_set_soc_by_chip_id(mlo_ctxt, NULL, be_soc->mlo_chip_id);
+	be_soc->ml_ctxt = NULL;
 }
 
 static QDF_STATUS dp_mlo_add_ptnr_vdev(struct dp_vdev *vdev1,