Browse Source

qcacmn: Add NULL check for pr_soc

Fix add for pr_soc NULL check

Change-Id: I3e48da3692a2d7eab28f9bd907a0ee682a35dae9
CRs-Fixed: 3200629
KARTHIK KUMAR T 3 years ago
parent
commit
816abb22a8
1 changed files with 2 additions and 0 deletions
  1. 2 0
      dp/wifi3.0/be/mlo/dp_mlo.c

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

@@ -326,6 +326,8 @@ void dp_clr_mlo_ptnr_list(struct dp_soc *soc, struct dp_vdev *vdev)
 				continue;
 
 			pr_soc = dp_mlo_get_soc_ref_by_chip_id(dp_mlo, i);
+			if (!pr_soc)
+				continue;
 			pr_soc_be = dp_get_be_soc_from_dp_soc(pr_soc);
 			pr_vdev = dp_vdev_get_ref_by_id(pr_soc,
 						vdev_be->partner_vdev_list[i][j],