diff options
| author | Linux Build Service Account <lnxbuild@localhost> | 2017-03-14 23:45:53 -0700 |
|---|---|---|
| committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2017-03-14 23:45:53 -0700 |
| commit | 5362d67feb301ab7e27c844b52c024ee9aacf0a4 (patch) | |
| tree | 95868ca33ed1676d94ee3ce2c4c7400003f63b4c | |
| parent | aebd97e372f41bd2e79cd6b46accd5b85fc991af (diff) | |
| parent | 7e5e33b416b3a995f88fead3d9a32e178382a7e0 (diff) | |
Merge "msm: ipa: Add spinlock to avoid deleting already deleted list"
| -rw-r--r-- | drivers/platform/msm/ipa/ipa_v2/ipa_dp.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/platform/msm/ipa/ipa_v2/ipa_dp.c b/drivers/platform/msm/ipa/ipa_v2/ipa_dp.c index a2665c9e9688..25364e8efa38 100644 --- a/drivers/platform/msm/ipa/ipa_v2/ipa_dp.c +++ b/drivers/platform/msm/ipa/ipa_v2/ipa_dp.c @@ -1974,6 +1974,8 @@ static void ipa_cleanup_wlan_rx_common_cache(void) struct ipa_rx_pkt_wrapper *rx_pkt; struct ipa_rx_pkt_wrapper *tmp; + spin_lock_bh(&ipa_ctx->wc_memb.wlan_spinlock); + list_for_each_entry_safe(rx_pkt, tmp, &ipa_ctx->wc_memb.wlan_comm_desc_list, link) { list_del(&rx_pkt->link); @@ -1994,6 +1996,8 @@ static void ipa_cleanup_wlan_rx_common_cache(void) IPAERR("wlan comm buff total cnt: %d\n", ipa_ctx->wc_memb.wlan_comm_total_cnt); + spin_unlock_bh(&ipa_ctx->wc_memb.wlan_spinlock); + } static void ipa_alloc_wlan_rx_common_cache(u32 size) |
