Sfoglia il codice sorgente

qcacld-3.0: Remove vdev sanity while sending IPA evt

When vdev is logically deleted, vdev reference will
be returned as NULL by objmgr.

Remove vdev sanity from QDF_BUG while sending IPA evt
in __wlan_ipa_wlan_evt.

Change-Id: Ie7f9697768d53c71a6bead377c35bbc3f62e808a
CRs-Fixed: 2433521
Rakshith Suresh Patkar 6 anni fa
parent
commit
8009443ffd
1 ha cambiato i file con 4 aggiunte e 1 eliminazioni
  1. 4 1
      components/ipa/core/src/wlan_ipa_core.c

+ 4 - 1
components/ipa/core/src/wlan_ipa_core.c

@@ -1542,9 +1542,12 @@ static QDF_STATUS __wlan_ipa_wlan_evt(qdf_netdev_t net_dev, uint8_t device_mode,
 	psoc = wlan_pdev_get_psoc(pdev);
 	vdev = wlan_objmgr_get_vdev_by_id_from_psoc(psoc, session_id,
 						    WLAN_IPA_ID);
-	QDF_BUG((session_id < WLAN_IPA_MAX_SESSION) && vdev);
+	QDF_BUG(session_id < WLAN_IPA_MAX_SESSION);
+
 	if (vdev)
 		wlan_objmgr_vdev_release_ref(vdev, WLAN_IPA_ID);
+	else
+		ipa_err("vdev is NULL, session_id: %u", session_id);
 
 	if (ipa_ctx->sta_connected) {
 		iface_ctx = wlan_ipa_get_iface(ipa_ctx, QDF_STA_MODE);