android_kernel_motorola_sm6225/sound/soc
Kuninori Morimoto d059943dde 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: d0fdfe3408 ("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>
2023-11-20 10:29:19 +01:00
..
adi
amd ASoC: AMD: Change MCLK to 48Mhz 2019-11-20 18:45:34 +01:00
atmel ASoC: atmel: Fix the 8K sample parameter in I2SC master 2023-09-23 10:47:58 +02:00
au1x treewide: devm_kzalloc() -> devm_kcalloc() 2018-06-12 16:19:22 -07:00
bcm
cirrus
codecs ASoC: rt5650: fix the wrong result of key button 2023-11-08 11:22:20 +01:00
davinci ASoC: ti: davinci-i2s: Add check for clk_enable() 2022-04-15 14:14:45 +02:00
dwc ASoC: dwc: limit the number of overrun messages 2023-06-09 10:23:58 +02:00
fsl ASoC: fsl_spdif: Silence output on stop 2023-08-11 11:45:32 +02:00
generic ASoC: simple-card: fixup asoc_simple_probe() error handling 2023-11-08 11:22:19 +01:00
hisilicon ASoC: hisilicon: fix missing clk_disable_unprepare() on error in hi6210_i2s_startup() 2021-07-20 16:15:55 +02:00
img ASoC: img-i2s-out: Fix runtime PM imbalance on error 2020-10-01 13:14:47 +02:00
intel ASoC: Intel: Skylake: Fix mem leak when parsing UUIDs fails 2023-11-20 10:29:19 +01:00
jz4740 ASoC: jz4740-i2s: add missed checks for clk_get() 2020-12-30 11:26:00 +01:00
kirkwood ASoC: kirkwood: Iterate over array indexes instead of using pointer math 2023-03-11 16:31:47 +01:00
mediatek ASoC: mediatek: mt8173-rt5650-rt5514: fix refcount leak in mt8173_rt5650_rt5514_dev_probe() 2023-01-18 11:30:38 +01:00
meson ASoC: meson: axg-tdm-formatter: fix channel slot allocation 2023-08-30 16:31:49 +02:00
mxs ASoC: mxs-saif: Fix refcount leak in mxs_saif_probe 2022-06-14 16:59:22 +02:00
nuc900
omap ASoC: ams-delta.c: use component after check 2023-11-20 10:29:19 +01:00
pxa ASoC: pxa: fix a memory leak in probe() 2023-10-25 11:17:02 +02:00
qcom ASoC: qcom: q6dsp: Fix an off-by-one in q6adm_alloc_copp() 2022-08-25 11:15:24 +02:00
rockchip ASoC: rockchip: spdif: Add missing clk_disable_unprepare() in rk_spdif_runtime_resume() 2023-01-18 11:30:38 +01:00
samsung ASoC: samsung: idma: Check of ioremap return value 2022-01-27 09:04:23 +01:00
sh ASoC: fsi: Add check for clk_enable 2022-04-15 14:14:46 +02:00
sirf ASoC: sirf: Fix potential NULL pointer dereference 2018-07-30 12:02:30 +01:00
spear
sti ASoC: sti: Fix deadlock via snd_pcm_stop_xrun() call 2022-03-28 08:41:43 +02:00
stm ASoC: stm32: spdifrx: fix race condition in irq handler 2020-01-17 19:46:59 +01:00
sunxi ASoC: sunxi: sun4i-codec: fill ASoC card owner 2021-04-14 08:22:35 +02:00
tegra ASoC: tegra: Set driver_name=tegra for all machine drivers 2021-07-20 16:16:04 +02:00
txx9
uniphier ASoC: uniphier: drop selecting non-existing SND_SOC_UNIPHIER_AIO_DMA 2022-01-27 09:04:22 +01:00
ux500
xtensa
zte ASoC: zte: Fix incorrect PCM format bit usages 2018-07-26 15:48:19 +01:00
Kconfig ASoC: meson: add axg fifo base driver 2018-07-18 13:08:36 +01:00
Makefile ASoC: meson: add axg fifo base driver 2018-07-18 13:08:36 +01:00
soc-ac97.c ASoC: ac97: convert to SPDX identifiers 2018-07-02 10:56:09 +01:00
soc-acpi.c ASoC: acpi: fix: continue searching when machine is ignored 2018-12-17 09:24:33 +01:00
soc-compress.c ASoC: soc-compress.c: fixup private_data on snd_soc_new_compress() 2023-03-11 16:31:41 +01:00
soc-core.c ASoC: core: Fix use-after-free in snd_soc_exit() 2022-11-25 17:40:22 +01:00
soc-dapm.c ASoC: dapm: Don't fold register value changes into notifications 2022-06-14 16:59:16 +02:00
soc-devres.c ASoC: soc-devres.c: convert to SPDX identifiers 2018-07-02 10:55:22 +01:00
soc-generic-dmaengine-pcm.c ASoC: dmaengine: Restore NULL prepare_slave_config() callback 2022-05-12 12:20:25 +02:00
soc-io.c ASoC: soc-io.c: convert to SPDX identifiers 2018-07-02 10:53:55 +01:00
soc-jack.c ASoC: Jack: Fix NULL pointer dereference in snd_soc_jack_report 2019-12-17 20:34:55 +01:00
soc-ops.c ASoC: ops: Correct bounds check for second channel on SX controls 2023-01-18 11:30:00 +01:00
soc-pcm.c ASoC: soc-pcm: Add NULL check in BE reparenting 2022-12-14 11:28:26 +01:00
soc-topology.c ASoC: topology: Allow TLV control to be either read or write 2022-04-15 14:14:59 +02:00
soc-utils.c ASoC: soc-utils: Remove __exit for snd_soc_util_exit() 2022-11-25 17:40:23 +01:00