qcacld-3.0: Reset iface_context to NULL if max IPA interfaces reached

Reset iface_context to NULL if max IPA interfaces reached to avoid to
cleanup the wrong interface context when setup IPA interface failure.

Change-Id: I2f19d62b9f76f826c2275a0d889b5f5a0a48a01f
CRs-Fixed: 2931966
This commit is contained in:
Tiger Yu
2021-05-07 15:23:25 +08:00
committed by Madan Koyyalamudi
vanhempi 79f3a39921
commit 91d2958518

Näytä tiedosto

@@ -1750,6 +1750,7 @@ static QDF_STATUS wlan_ipa_setup_iface(struct wlan_ipa_priv *ipa_ctx,
if (WLAN_IPA_MAX_IFACE == ipa_ctx->num_iface) {
ipa_err("Max interface reached %d", WLAN_IPA_MAX_IFACE);
status = QDF_STATUS_E_NOMEM;
iface_context = NULL;
QDF_ASSERT(0);
goto end;
}