From 120925c13e513f56ee508821995a5034a3d1f516 Mon Sep 17 00:00:00 2001 From: Greg Kroah-Hartman Date: Sun, 2 Nov 2025 23:01:08 +0900 Subject: [PATCH] 5.10-stable patches added patches: asoc-qdsp6-q6asm-do-not-sleep-while-atomic.patch --- ...dsp6-q6asm-do-not-sleep-while-atomic.patch | 37 +++++++++++++++++++ queue-5.10/series | 1 + 2 files changed, 38 insertions(+) create mode 100644 queue-5.10/asoc-qdsp6-q6asm-do-not-sleep-while-atomic.patch diff --git a/queue-5.10/asoc-qdsp6-q6asm-do-not-sleep-while-atomic.patch b/queue-5.10/asoc-qdsp6-q6asm-do-not-sleep-while-atomic.patch new file mode 100644 index 0000000000..dc5bfb0449 --- /dev/null +++ b/queue-5.10/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.10/series b/queue-5.10/series index d836de8e92..1c5806a7c4 100644 --- a/queue-5.10/series +++ b/queue-5.10/series @@ -10,3 +10,4 @@ fbdev-bitblit-bound-check-glyph-index-in-bit_putcs.patch 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 +asoc-qdsp6-q6asm-do-not-sleep-while-atomic.patch -- 2.47.3