]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: SOF: ipc3-topology: Set scontrol->priv to NULL after freeing it
authorPeter Ujfalusi <peter.ujfalusi@linux.intel.com>
Thu, 31 Mar 2022 11:47:57 +0000 (14:47 +0300)
committerMark Brown <broonie@kernel.org>
Tue, 5 Apr 2022 09:23:20 +0000 (10:23 +0100)
commitfad19516f61be525ac1cbb3f1718f05143fac5c2
treedb21b6cfafcd9d154988cc8e8080cf27c3a6574e
parent5c2885ebfb564773530e40249eb9d38e275968e8
ASoC: SOF: ipc3-topology: Set scontrol->priv to NULL after freeing it

Since the scontrol->priv is freed up during load operation it should be set
to NULL to be safe against double freeing attempt.

Fixes: a7a4b1e34c3cd ("ASoC: SOF: topology: Make control parsing IPC agnostic")
Signed-off-by: Peter Ujfalusi <peter.ujfalusi@linux.intel.com>
Reviewed-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Link: https://lore.kernel.org/r/20220331114757.32551-1-peter.ujfalusi@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sof/ipc3-topology.c