]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: topology: Correct error handling in soc_tplg_dapm_widget_create()
authorPeter Ujfalusi <peter.ujfalusi@linux.intel.com>
Thu, 31 Mar 2022 11:49:57 +0000 (14:49 +0300)
committerMark Brown <broonie@kernel.org>
Mon, 4 Apr 2022 13:25:36 +0000 (14:25 +0100)
commitf61c27b3a8c7d548d285d0404f3ce2f3fb58a24d
tree926d5c1af291900f9b12c0856207370a26c51fc7
parent3ae546a023ff068091db37c064f4725c993984fe
ASoC: topology: Correct error handling in soc_tplg_dapm_widget_create()

Academic correction of error handling:
In case the allocation of kc or kcontrol_type fails the correct label to
jump is hdr_err since the template.sname has been also allocated at this
point.

Fixes: 1b5c1c6331e44 ("ASoC: topology: Add support for multiple kcontrol types to a widget")
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/20220331114957.519-1-peter.ujfalusi@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/soc-topology.c