diff options
| author | Manikandan Mohan <manikand@codeaurora.org> | 2017-02-17 14:21:53 -0800 |
|---|---|---|
| committer | qcabuildsw <qcabuildsw@localhost> | 2017-02-21 16:09:20 -0800 |
| commit | 91fb5f68fb020603732348ba3fece56f821d4bdf (patch) | |
| tree | 8864a44eb58188913ef9999893917e878ed66031 | |
| parent | 08ce06bd2cc6e545a436c5959d61c1bc02e28211 (diff) | |
qcacld-3.0: Check for adapter validity in IPA deinit
Check for adapter validity during IPA SSR deinit cleanup.
Change-Id: Ifc0ab0c79681388941b220551ec7e0c165fbe642
CRs-fixed: 2008107
| -rw-r--r-- | core/hdd/src/wlan_hdd_ipa.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/core/hdd/src/wlan_hdd_ipa.c b/core/hdd/src/wlan_hdd_ipa.c index dfb44cf2a846..869ea2c8eee6 100644 --- a/core/hdd/src/wlan_hdd_ipa.c +++ b/core/hdd/src/wlan_hdd_ipa.c @@ -3071,10 +3071,11 @@ static int __hdd_ipa_uc_ssr_deinit(void) for (idx = 0; (hdd_ipa->num_iface > 0) && (idx < HDD_IPA_MAX_IFACE); idx++) { iface_context = &hdd_ipa->iface_context[idx]; - if (iface_context && iface_context->adapter) + if (iface_context->adapter && iface_context->adapter->magic == + WLAN_HDD_ADAPTER_MAGIC) hdd_ipa_cleanup_iface(iface_context); } - + hdd_ipa->num_iface = 0; /* After SSR, wlan driver reloads FW again. But we need to protect * IPA submodule during SSR transient state. So deinit basic IPA * UC host side to be in sync with reloaded FW during SSR |
