]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
soundwire: intel_ace2x: release bpt_stream when close it
authorBard Liao <yung-chuan.liao@linux.intel.com>
Thu, 14 May 2026 14:16:25 +0000 (22:16 +0800)
committerVinod Koul <vkoul@kernel.org>
Sun, 17 May 2026 16:17:38 +0000 (21:47 +0530)
The BPT stream was allocated in intel_ace2x_bpt_open_stream(), we need
to free it in intel_ace2x_bpt_close_stream().

Fixes: 4c1ce9f37d8a8 ("soundwire: intel_ace2x: add BPT send_async/wait callbacks")
Signed-off-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Reviewed-by: Simon Trimmer <simont@opensource.cirrus.com>
Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.dev>
Link: https://patch.msgid.link/20260514141625.1834216-1-yung-chuan.liao@linux.intel.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/soundwire/intel_ace2x.c

index 0a97253fe0c27825bb258d7a95825928da5056a9..b37933efac5d26e0e0bf313278c7c4132615127b 100644 (file)
@@ -317,6 +317,7 @@ static void intel_ace2x_bpt_close_stream(struct sdw_intel *sdw, struct sdw_slave
                dev_err(cdns->dev, "%s: remove slave failed: %d\n",
                        __func__, ret);
 
+       sdw_release_stream(cdns->bus.bpt_stream);
        cdns->bus.bpt_stream = NULL;
 }