[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20251228140530.3739960-1-lihaoxiang@isrc.iscas.ac.cn>
Date: Sun, 28 Dec 2025 22:05:30 +0800
From: Haoxiang Li <lihaoxiang@...c.iscas.ac.cn>
To: perex@...ex.cz,
tiwai@...e.com,
thierry.reding@...il.com,
jonathanh@...dia.com,
mkumard@...dia.com,
ddadap@...dia.com,
sheetal@...dia.com
Cc: linux-sound@...r.kernel.org,
linux-tegra@...r.kernel.org,
linux-kernel@...r.kernel.org,
Haoxiang Li <lihaoxiang@...c.iscas.ac.cn>
Subject: [PATCH] ALSA: hda/tegra: fix a memory leak in hda_tegra_first_init()
Add azx_free_stream_pages() to release the resources allocated
by azx_alloc_stream_pages().
Signed-off-by: Haoxiang Li <lihaoxiang@...c.iscas.ac.cn>
---
sound/hda/controllers/tegra.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/sound/hda/controllers/tegra.c b/sound/hda/controllers/tegra.c
index 6ab338f37db5..656cbd88b9aa 100644
--- a/sound/hda/controllers/tegra.c
+++ b/sound/hda/controllers/tegra.c
@@ -380,6 +380,7 @@ static int hda_tegra_first_init(struct azx *chip, struct platform_device *pdev)
/* codec detection */
if (!bus->codec_mask) {
dev_err(card->dev, "no codecs found!\n");
+ azx_free_stream_pages(chip);
return -ENODEV;
}
--
2.25.1
Powered by blists - more mailing lists