mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-15 01:01:56 -04:00
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
This commit is contained in:
parent
be9d5fcc14
commit
e8774bdf67
1 changed files with 3 additions and 0 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in a new issue