]> 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)
commitde74f403f65f3e62a8f62456068f22082de30b05
treec789190432daf205ba30fbb19fe62a18de66c1d0
parent30d5525c63f3b468fe25beac8c557fd090a847c2
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