From: Greg Kroah-Hartman Date: Sun, 2 Nov 2025 14:01:46 +0000 (+0900) Subject: 5.15-stable patches X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=60190fdb226ce21d86bedf92d13f934b37490826;p=thirdparty%2Fkernel%2Fstable-queue.git 5.15-stable patches added patches: asoc-qdsp6-q6asm-do-not-sleep-while-atomic.patch --- diff --git a/queue-5.15/asoc-qdsp6-q6asm-do-not-sleep-while-atomic.patch b/queue-5.15/asoc-qdsp6-q6asm-do-not-sleep-while-atomic.patch new file mode 100644 index 0000000000..dc5bfb0449 --- /dev/null +++ b/queue-5.15/asoc-qdsp6-q6asm-do-not-sleep-while-atomic.patch @@ -0,0 +1,37 @@ +From fdbb53d318aa94a094434e5f226617f0eb1e8f22 Mon Sep 17 00:00:00 2001 +From: Srinivas Kandagatla +Date: Fri, 17 Oct 2025 09:52:56 +0100 +Subject: ASoC: qdsp6: q6asm: do not sleep while atomic + +From: Srinivas Kandagatla + +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: a2a5d30218fd ("ASoC: qdsp6: q6asm: Add support to memory map and unmap") +Cc: Stable@vger.kernel.org +Signed-off-by: Srinivas Kandagatla +Link: https://patch.msgid.link/20251017085307.4325-2-srinivas.kandagatla@oss.qualcomm.com +Signed-off-by: Mark Brown +Signed-off-by: Greg Kroah-Hartman +--- + sound/soc/qcom/qdsp6/q6asm.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +--- a/sound/soc/qcom/qdsp6/q6asm.c ++++ b/sound/soc/qcom/qdsp6/q6asm.c +@@ -376,9 +376,9 @@ static void q6asm_audio_client_free_buf( + + 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); + } + + /** diff --git a/queue-5.15/series b/queue-5.15/series index f7fccf4ffd..d8d7af2699 100644 --- a/queue-5.15/series +++ b/queue-5.15/series @@ -12,3 +12,4 @@ wifi-brcmfmac-fix-crash-while-sending-action-frames-in-standalone-ap-mode.patch fbdev-pvr2fb-fix-leftover-reference-to-onchip_nr_dma_channels.patch fbdev-valkyriefb-fix-reference-count-leak-in-valkyriefb_init.patch mptcp-restore-window-probe.patch +asoc-qdsp6-q6asm-do-not-sleep-while-atomic.patch