qcacld-3.0: Handle ipa_tx_desc is NULL case in hdd_ipa_cleanup
In the hdd_ipa_forward, we are not populating pm_tx_cb->ipa_tx_desc
field. So, during hdd_ipa_cleanup, call ipa_free_skb only when
ipa_tx_desc is not NULL.
Change-Id: Ib15cd3eb0c7b10a205993db27960fa2e7775b335
CRs-Fixed: 2046901
diff --git a/core/hdd/src/wlan_hdd_ipa.c b/core/hdd/src/wlan_hdd_ipa.c
index 0db3a70..f67def7 100644
--- a/core/hdd/src/wlan_hdd_ipa.c
+++ b/core/hdd/src/wlan_hdd_ipa.c
@@ -6235,7 +6235,8 @@
qdf_spin_unlock_bh(&hdd_ipa->pm_lock);
pm_tx_cb = (struct hdd_ipa_pm_tx_cb *)skb->cb;
- ipa_free_skb(pm_tx_cb->ipa_tx_desc);
+ if (pm_tx_cb->ipa_tx_desc)
+ ipa_free_skb(pm_tx_cb->ipa_tx_desc);
qdf_spin_lock_bh(&hdd_ipa->pm_lock);
}