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
@ -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 New Issue
Block a user