Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 974bfef3 authored by Ajay Dudani's avatar Ajay Dudani Committed by Ravi Kumar Alamanda
Browse files

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: default avatarNaveen Ramaraj <nramaraj@codeaurora.org>
Signed-off-by: default avatarAjay Dudani <adudani@codeaurora.org>
Signed-off-by: default avatarIliyan Malchev <malchev@google.com>
Git-commit: a43eebe1e74444b96275573cbec3f11253d40683
Git-repo: https://android.googlesource.com/kernel/msm


Signed-off-by: default avatarDhananjay Kumar <dhakumar@codeaurora.org>
parent 312d2603
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment