Explorar o código

qcacmn: Add null check for connect req while handling deferred connect

Add null check for connect req while handling deferred connect

Change-Id: Iea54005240e5f8608d8da655e8f0fbc0d535291e
CRs-Fixed: 3506588
Himanshu Batra %!s(int64=2) %!d(string=hai) anos
pai
achega
b7ad8efcf9
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      umac/mlo_mgr/src/wlan_mlo_mgr_sta.c

+ 1 - 1
umac/mlo_mgr/src/wlan_mlo_mgr_sta.c

@@ -1457,7 +1457,7 @@ static QDF_STATUS ml_activate_connect_req_sched_cb(struct scheduler_msg *msg)
 	}
 
 	sta_ctx = mlo_dev_ctx->sta_ctx;
-	if (!sta_ctx) {
+	if (!sta_ctx || !sta_ctx->connect_req) {
 		wlan_objmgr_vdev_release_ref(vdev, WLAN_MLO_MGR_ID);
 		return QDF_STATUS_E_INVAL;
 	}