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
此提交包含在:
Prakash Dhavali
2016-11-14 14:40:42 -08:00
提交者 qcabuildsw
父節點 4c2a9fe3ff
當前提交 63f8fd65cf

查看文件

@@ -2756,6 +2756,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;