kernel_samsung_a53x/sound/soc/ti
Kuninori Morimoto 0656d13c77 ASoC: ams-delta.c: use component after check
[ Upstream commit bd0f7498bc9084d8cccc5484cd004b40f314b763 ]

	static void cx81801_close()
	{
		...
(A)		struct snd_soc_dapm_context *dapm = &component->card->dapm;
		...
(B)		if (!component)
			return;
	}

(A) uses component before NULL check (B). This patch moves it after (B).

Fixes: d0fdfe34080c ("ASoC: cx20442: replace codec to component")
Reported-by: Dan Carpenter <dan.carpenter@linaro.org>
Closes: https://lore.kernel.org/r/3e608474-e99a-4866-ae98-3054a4221f09@moroto.mountain
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Link: https://lore.kernel.org/r/87ttqdq623.wl-kuninori.morimoto.gx@renesas.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-11-18 11:43:04 +01:00
..
ams-delta.c ASoC: ams-delta.c: use component after check 2024-11-18 11:43:04 +01:00
davinci-evm.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
davinci-i2s.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
davinci-i2s.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
davinci-mcasp.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
davinci-mcasp.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
davinci-vcif.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
edma-pcm.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
edma-pcm.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
j721e-evm.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Kconfig Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Makefile Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
n810.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
omap-abe-twl6040.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
omap-dmic.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
omap-dmic.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
omap-hdmi.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
omap-mcbsp-priv.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
omap-mcbsp-st.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
omap-mcbsp.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
omap-mcbsp.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
omap-mcpdm.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
omap-mcpdm.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
omap-twl4030.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
omap3pandora.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
osk5912.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
rx51.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sdma-pcm.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sdma-pcm.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
udma-pcm.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
udma-pcm.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00