diff options
| author | Yun Park <yunp@codeaurora.org> | 2016-11-14 14:40:42 -0800 |
|---|---|---|
| committer | qcabuildsw <qcabuildsw@localhost> | 2016-12-05 20:09:05 -0800 |
| commit | d9e1483b4644dcc236ed3f1d4ef09b451c78de91 (patch) | |
| tree | 52b8674b9f3e58e73f2c27e6933d1be77995908b | |
| parent | d2997600bce18811c61ec8c8ae248fa84ccf9a38 (diff) | |
qcacld-3.0: Check HDD context validity before processing IPA Rx events
qcacld-2.0 to qcacld-3.0 propagation
This fixes a race condition between IPA Rx handler and wlan unloading
Change-Id: I8997d532a92b2708bc48f09badb89fabe1544c87
CRs-fixed: 1059550
| -rw-r--r-- | core/hdd/src/wlan_hdd_ipa.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/core/hdd/src/wlan_hdd_ipa.c b/core/hdd/src/wlan_hdd_ipa.c index 5b90f1f53a40..0dddbab6d7cd 100644 --- a/core/hdd/src/wlan_hdd_ipa.c +++ b/core/hdd/src/wlan_hdd_ipa.c @@ -2754,6 +2754,9 @@ static void __hdd_ipa_w2i_cb(void *priv, enum ipa_dp_evt_type evt, hdd_ipa = (struct hdd_ipa_priv *)priv; + if (!hdd_ipa || wlan_hdd_validate_context(hdd_ipa->hdd_ctx)) + return; + switch (evt) { case IPA_RECEIVE: skb = (qdf_nbuf_t) data; |
