FAILED: Patch "media: cx88: Add missing unmap in snd_cx88_hw_params()" failed to apply to 6.12-stable tree
Subsystems (3)
Sasha Levin
maintainerThe patch below does not apply to the 6.12-stable tree.
If someone wants it applied there, or to any other stable or longterm tree, then please email the backport, including the original git commit id to <[email protected]>.
Thanks,
Sasha
------------------ original commit in Linus's tree ------------------
From dbc527d980f7ba8559de38f8c1e4158c71a78915 Mon Sep 17 00:00:00 2001
From: Haoxiang Li <[email protected]>
Date: Wed, 10 Dec 2025 10:53:48 +0800
Subject: [PATCH] media: cx88: Add missing unmap in snd_cx88_hw_params()
In error path, add cx88_alsa_dma_unmap() to release resource acquired by cx88_alsa_dma_map().
Fixes b2c75abde0de ("[media] cx88: drop videobuf abuse in cx88-alsa")
Signed-off-by Haoxiang Li <[email protected]>
Signed-off-by Hans Verkuil <[email protected]>
--- drivers/media/pci/cx88/cx88-alsa.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
drivers/media/pci/cx88/cx88-alsa.c +3 -1
@@ -483,8 +483,10 @@ static int snd_cx88_hw_params(struct snd_pcm_substream *substream, ret =cx88_risc_databuffer (chip->pci, &buf->risc, buf->sglist, chip->period_size, chip->num_periods,1 ); -if (ret <0 ) +if (ret <0 ) { +cx88_alsa_dma_unmap (chip); goto error; + }/* Loop back to start of program */ buf->risc.jmp[0 ] =cpu_to_le32 (RISC_JUMP |RISC_IRQ1 |RISC_CNT_INC );
Signature · 1 line
2.51.0