]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: soc-core: initialize component list
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Tue, 20 Aug 2019 05:05:16 +0000 (14:05 +0900)
committerMark Brown <broonie@kernel.org>
Thu, 22 Aug 2019 17:31:58 +0000 (18:31 +0100)
commitdd1672cbc2653b75ea567458ad7661ae6b0e28b0
treec789190432daf205ba30fbb19fe62a18de66c1d0
parent1ebd8eeeeddddadebbb7217763fb8c012d7bcbd8
ASoC: soc-core: initialize component list

It might return without initializing in error case.
In such case, uninitialized variable might be used at error handler.
This patch initializes all necessary variable before return.

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Reviewed-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Link: https://lore.kernel.org/r/87zhk4zazt.wl-kuninori.morimoto.gx@renesas.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/soc-core.c