Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

ASoC: qdsp6: q6asm: do not sleep while atomic

For some reason we ended up kfree between spinlock lock and unlock,
which can sleep.

move the kfree out of spinlock section.

Fixes: a2a5d30218fd ("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>

authored by

Srinivas Kandagatla and committed by
Mark Brown
fdbb53d3 3bcdbc22

+1 -1
+1 -1
sound/soc/qcom/qdsp6/q6asm.c
··· 377 377 378 378 spin_lock_irqsave(&ac->lock, flags); 379 379 port->num_periods = 0; 380 + spin_unlock_irqrestore(&ac->lock, flags); 380 381 kfree(port->buf); 381 382 port->buf = NULL; 382 - spin_unlock_irqrestore(&ac->lock, flags); 383 383 } 384 384 385 385 /**