mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-13 08:07:32 -04:00
asoc:msm-lsm-client: potential deadlock fix
After acquiring spinlock, if memory allocation fails, the spinlock is not released, thus inducing a potential deadlock. Change-Id: I8d390437a00b8a9ca2cb216f47434a0448506e1f Signed-off-by: ftong <quic_ftong@quicinc.com>
This commit is contained in:
parent
3f10f8fe5f
commit
4a7f98b01c
1 changed files with 1 additions and 0 deletions
|
|
@ -412,6 +412,7 @@ static void lsm_event_handler(uint32_t opcode, uint32_t token,
|
|||
if (!temp) {
|
||||
dev_err(rtd->dev, "%s: no memory for event status\n",
|
||||
__func__);
|
||||
spin_unlock_irqrestore(&prtd->event_lock, flags);
|
||||
__pm_relax(prtd->ws);
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue