mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-11-09 20:31:13 -05:00
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
This commit is contained in:
parent
4c2a9fe3ff
commit
63f8fd65cf
1 changed files with 3 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue