From e8774bdf679dda6375df342cf88c1de33d330c12 Mon Sep 17 00:00:00 2001 From: Venkateswara Swamy Bandaru Date: Wed, 8 Aug 2018 11:39:25 +0530 Subject: [PATCH] qcacmn: Fix race condition on setting irq_requested to true Fix race condition on setting irq_requested to true by releasing spin lock irq_save and taking it again. This will update the irq flags to the irqs enabled after taking the lock. Change-Id: Ic68847994fd053b8061d35a346ee65a495c7b725 CRs-Fixed: 2293004 --- hif/src/snoc/if_ahb.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/hif/src/snoc/if_ahb.c b/hif/src/snoc/if_ahb.c index 5274d9bd4473..e398d8b1952b 100644 --- a/hif/src/snoc/if_ahb.c +++ b/hif/src/snoc/if_ahb.c @@ -312,6 +312,9 @@ int hif_ahb_configure_grp_irq(struct hif_softc *scn, } hif_ext_group->os_irq[j] = irq; } + qdf_spin_unlock_irqrestore(&hif_ext_group->irq_lock); + + qdf_spin_lock_irqsave(&hif_ext_group->irq_lock); hif_ext_group->irq_requested = true; end: