From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B988C82899; Sun, 1 Mar 2026 01:31:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772328710; cv=none; b=NkmRkqJOCcmpoum8jbil9waalEFHSUY4C6IbBgBZDBkzWYKDNLwpuum07OuMDf9umIMB53qssS2t4g0vE84grWHwDaFRVqg0LvBJRUEXNYRcbar6NfHx8lh+lQ/8pNBjyltqCfBcpnYpNkAMaWHq50g/UlKik2xGoWr5EQlyWd8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772328710; c=relaxed/simple; bh=148EPE0DvDNEYMLI7t1n84nkjFyYWaJpIYEYqTxVjLQ=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=eypbOXBCCey/ZefT4ttfXQaHCkpmuWcS6L7NhbHoGGJs9ODNqUVBkBmkVvDQAno912LzNpmqu9v0G0lYFLQzZ6KxJuqghM0XdlmqxGSuVmTIU7VP0I+LreKQGx5UbbOJUNEaMGyNq/RPob3yqQkxYz5SkM9s4NH20/KbIKI56KY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=MFVdQrcG; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="MFVdQrcG" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2A4CBC19421; Sun, 1 Mar 2026 01:31:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1772328710; bh=148EPE0DvDNEYMLI7t1n84nkjFyYWaJpIYEYqTxVjLQ=; h=From:To:Cc:Subject:Date:From; b=MFVdQrcGUnM9B3NuhKRPU7JuVYIxzbqPopHRKGxTW68Qnge/QAwhNJdcMJXpD6/Rc 1dJA4TLwr34F5MMo/rqxEf69P9/paoro6UGURZRUZq7lpTR85hS69/ZbFmybRMtu1s wHU13EAaZmMdkzfPxBbslg40fHJG/QsOYSrtpDn+7bR34jGslMOdOiYvaUXxdguyvx fgW5rCb5QDHd3VAWEgqoSfkvEAcqkPyorTb6cyRAvLlUkuObdHEzQie6zRS20wmxqB bgQlvVvtA+TTnb8vvuwAGy9uqEXZiH7thotWOzMrISIKVaLYRt0kGvhO76hpzjimVh fdshVY7h6cpsw== From: Sasha Levin To: stable@vger.kernel.org, lihaoxiang@isrc.iscas.ac.cn Cc: Hans Verkuil , linux-media@vger.kernel.org Subject: FAILED: Patch "media: cx88: Add missing unmap in snd_cx88_hw_params()" failed to apply to 6.6-stable tree Date: Sat, 28 Feb 2026 20:31:48 -0500 Message-ID: <20260301013149.1690503-1-sashal@kernel.org> X-Mailer: git-send-email 2.51.0 Precedence: bulk X-Mailing-List: linux-media@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Patchwork-Hint: ignore X-stable: review Content-Transfer-Encoding: 8bit The patch below does not apply to the 6.6-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 . Thanks, Sasha ------------------ original commit in Linus's tree ------------------ >From dbc527d980f7ba8559de38f8c1e4158c71a78915 Mon Sep 17 00:00:00 2001 From: Haoxiang Li 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") Cc: stable@vger.kernel.org Signed-off-by: Haoxiang Li Signed-off-by: Hans Verkuil --- drivers/media/pci/cx88/cx88-alsa.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/media/pci/cx88/cx88-alsa.c b/drivers/media/pci/cx88/cx88-alsa.c index 29fb1311e4434..4e574d8390b4d 100644 --- a/drivers/media/pci/cx88/cx88-alsa.c +++ b/drivers/media/pci/cx88/cx88-alsa.c @@ -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); -- 2.51.0