Skip to content

Commit 4f2ba84

Browse files
Srinivas KandagatlaUlrich Hecht
authored andcommitted
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: a2a5d30 ("ASoC: qdsp6: q6asm: Add support to memory map and unmap") Cc: Stable@vger.kernel.org Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@oss.qualcomm.com> Link: https://patch.msgid.link/20251017085307.4325-2-srinivas.kandagatla@oss.qualcomm.com Signed-off-by: Mark Brown <broonie@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: Ulrich Hecht <uli@kernel.org>
1 parent cc3eb21 commit 4f2ba84

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

sound/soc/qcom/qdsp6/q6asm.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -298,9 +298,9 @@ static void q6asm_audio_client_free_buf(struct audio_client *ac,
298298

299299
spin_lock_irqsave(&ac->lock, flags);
300300
port->num_periods = 0;
301+
spin_unlock_irqrestore(&ac->lock, flags);
301302
kfree(port->buf);
302303
port->buf = NULL;
303-
spin_unlock_irqrestore(&ac->lock, flags);
304304
}
305305

306306
/**

0 commit comments

Comments
 (0)