Skip to content

Commit 4149c0f

Browse files
committed
soundwire: intel_ace2x: release bpt_stream when close it
The BPT stream was allocated in intel_ace2x_bpt_open_stream(), we need to free it in intel_ace2x_bpt_close_stream(). Fixes: 4c1ce9f ("soundwire: intel_ace2x: add BPT send_async/wait callbacks") Signed-off-by: Bard Liao <yung-chuan.liao@linux.intel.com>
1 parent f04d839 commit 4149c0f

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

drivers/soundwire/intel_ace2x.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -317,6 +317,7 @@ static void intel_ace2x_bpt_close_stream(struct sdw_intel *sdw, struct sdw_slave
317317
dev_err(cdns->dev, "%s: remove slave failed: %d\n",
318318
__func__, ret);
319319

320+
sdw_release_stream(cdns->bus.bpt_stream);
320321
cdns->bus.bpt_stream = NULL;
321322
}
322323

0 commit comments

Comments
 (0)