Skip to content

Commit e551714

Browse files
ranj063bardliao
authored andcommitted
[NOT FOR UPSTREAM] ASoC: SOF: ipc4-mtrace: Free trace data in ipc4_mtrace_free()
This is required to properly reinitialize trace after freeing without removing the SOF device. Signed-off-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
1 parent f0bc94c commit e551714

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

sound/soc/sof/ipc4-mtrace.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -574,6 +574,8 @@ static int ipc4_mtrace_init(struct snd_sof_dev *sdev)
574574
static void ipc4_mtrace_free(struct snd_sof_dev *sdev)
575575
{
576576
ipc4_mtrace_disable(sdev);
577+
devm_kfree(sdev->dev, sdev->fw_trace_data);
578+
sdev->fw_trace_data = NULL;
577579
}
578580

579581
static int sof_ipc4_mtrace_update_pos_all_cores(struct snd_sof_dev *sdev)

0 commit comments

Comments
 (0)