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 3DDD2378D84; Mon, 9 Feb 2026 14:44:39 +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=1770648279; cv=none; b=uciZaeGkZ28aibRoZ8nXazkk0ovhxTZQ0Gu8W5jRXbR2233DotpPi5YZAL/6EfJvYIBRBNqmHeDhTXCoZgZsK8xE8GVo6XcjKvVfly5CrAQSJKLKobLXYHwhTypobjmx/kjyk8UAzs3/gPnTcGB8eriA+X8CW5gBcrYTQy2J6rU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770648279; c=relaxed/simple; bh=qPgx3pxU2o0Pjg88w7vlwbtPTRZcZQW5e9Wdl4xPJs4=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=kEAJsmNs0VHSBPvd6NJOioX27h64+IXwhey8wI9qNnVzKfNPFdFRO31Hlu8HgcgVzWar5U/724gbAQm2okbSkI3JC0RCJhSZlJaLM4zTh2PPU+KN/YYNFBfowGvROUiAMiD1vzKW3tcRpYT75ZTCvA33ftxIZ9RlrHvrMTcgFxY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=S+MzxZV/; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="S+MzxZV/" Received: by smtp.kernel.org (Postfix) with ESMTPSA id A1375C116C6; Mon, 9 Feb 2026 14:44:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1770648279; bh=qPgx3pxU2o0Pjg88w7vlwbtPTRZcZQW5e9Wdl4xPJs4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=S+MzxZV/Xzao8X5Slx4/YfEfrEyxllwFYOV+5MAqsx5Mi7M3YWVXh6CaoByPhXeOn nd+3W8UJs470L4gbem3AgnGCwdBGICdbw+IfmEHOQmKLD31CqQlqbafS5OsR6sxmlr 2+EmU8AV6lqQZsYsXb7fj+qWtbAHZVsUm9Sb7b+4= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Chris Bainbridge , Mark Brown , Sasha Levin Subject: [PATCH 6.1 59/69] ASoC: amd: fix memory leak in acp3x pdm dma ops Date: Mon, 9 Feb 2026 15:24:27 +0100 Message-ID: <20260209142304.048931670@linuxfoundation.org> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260209142301.913348974@linuxfoundation.org> References: <20260209142301.913348974@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.1-stable review patch. If anyone has any objections, please let me know. ------------------ From: Chris Bainbridge [ Upstream commit 7f67ba5413f98d93116a756e7f17cd2c1d6c2bd6 ] Fixes: 4a767b1d039a8 ("ASoC: amd: add acp3x pdm driver dma ops") Signed-off-by: Chris Bainbridge Link: https://patch.msgid.link/20260202205034.7697-1-chris.bainbridge@gmail.com Signed-off-by: Mark Brown Signed-off-by: Sasha Levin --- sound/soc/amd/renoir/acp3x-pdm-dma.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sound/soc/amd/renoir/acp3x-pdm-dma.c b/sound/soc/amd/renoir/acp3x-pdm-dma.c index 7203c6488df0e..643deed487ab4 100644 --- a/sound/soc/amd/renoir/acp3x-pdm-dma.c +++ b/sound/soc/amd/renoir/acp3x-pdm-dma.c @@ -295,9 +295,11 @@ static int acp_pdm_dma_close(struct snd_soc_component *component, struct snd_pcm_substream *substream) { struct pdm_dev_data *adata = dev_get_drvdata(component->dev); + struct pdm_stream_instance *rtd = substream->runtime->private_data; disable_pdm_interrupts(adata->acp_base); adata->capture_stream = NULL; + kfree(rtd); return 0; } -- 2.51.0