ASoC: msm: Fix potential spin lock recursion in compress driver
1. compr_event_handler() in this driver is called from interrupt context. This function uses spin_lock_irq() and spin_unlock_irq(). 2. Calling spin_unlock_irq() from interrupt handler will enable the interrupts and could result another interrupt while we are still in an interrupt handler. Replace spin_lock_irq() with spin_lock() and spind_unlock_irq() with spin_unlock() in the compr_event_handler() function. Replace spin_lock_irq() with spin_lock_irqsave() and spin_unlock_irq() with spin_unlock_irqrestore() in rest of file. Change-Id: I19b98fe48ef6f66da4c2718cdeaba9df5878d2f5 Signed-off-by:Naveen Ramaraj <nramaraj@codeaurora.org> Signed-off-by:
Ajay Dudani <adudani@codeaurora.org> Signed-off-by:
Iliyan Malchev <malchev@google.com> Git-commit: a43eebe1e74444b96275573cbec3f11253d40683 Git-repo: https://android.googlesource.com/kernel/msm Signed-off-by:
Dhananjay Kumar <dhakumar@codeaurora.org>
Loading
Please register or sign in to comment