mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 11:41:38 -04:00
ASoC: qdsp6: q6asm: do not sleep while atomic
commit fdbb53d318aa94a094434e5f226617f0eb1e8f22 upstream.
For some reason we ended up kfree between spinlock lock and unlock,
which can sleep.
move the kfree out of spinlock section.
Fixes: a2a5d30218 ("ASoC: qdsp6: q6asm: Add support to memory map and unmap")
Cc: [email protected]
Signed-off-by: Srinivas Kandagatla <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Mark Brown <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
This commit is contained in:
parent
ab258b14da
commit
01800cee94
1 changed files with 1 additions and 1 deletions
|
|
@ -299,9 +299,9 @@ static void q6asm_audio_client_free_buf(struct audio_client *ac,
|
|||
|
||||
spin_lock_irqsave(&ac->lock, flags);
|
||||
port->num_periods = 0;
|
||||
spin_unlock_irqrestore(&ac->lock, flags);
|
||||
kfree(port->buf);
|
||||
port->buf = NULL;
|
||||
spin_unlock_irqrestore(&ac->lock, flags);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in a new issue