kernel_samsung_a53x/sound/soc/fsl
Elinor Montmasson caf0311c06 ASoC: fsl-asoc-card: set priv->pdev before using it
[ Upstream commit 90f3feb24172185f1832636264943e8b5e289245 ]

priv->pdev pointer was set after being used in
fsl_asoc_card_audmux_init().
Move this assignment at the start of the probe function, so
sub-functions can correctly use pdev through priv.

fsl_asoc_card_audmux_init() dereferences priv->pdev to get access to the
dev struct, used with dev_err macros.
As priv is zero-initialised, there would be a NULL pointer dereference.
Note that if priv->dev is dereferenced before assignment but never used,
for example if there is no error to be printed, the driver won't crash
probably due to compiler optimisations.

Fixes: 708b4351f08c ("ASoC: fsl: Add Freescale Generic ASoC Sound Card with ASRC support")
Signed-off-by: Elinor Montmasson <elinor.montmasson@savoirfairelinux.com>
Link: https://patch.msgid.link/20240620132511.4291-2-elinor.montmasson@savoirfairelinux.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-11-19 14:19:31 +01:00
..
efika-audio-fabric.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
eukrea-tlv320.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
fsl-asoc-card.c ASoC: fsl-asoc-card: set priv->pdev before using it 2024-11-19 14:19:31 +01:00
fsl_asrc.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
fsl_asrc.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
fsl_asrc_common.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
fsl_asrc_dma.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
fsl_audmix.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
fsl_audmix.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
fsl_dma.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
fsl_dma.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
fsl_easrc.c ASoC: fsl: Fix PM disable depth imbalance in fsl_easrc_probe 2024-11-18 11:43:03 +01:00
fsl_easrc.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
fsl_esai.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
fsl_esai.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
fsl_micfil.c ASoC: fsl_micfil: register platform component before registering cpu dai 2024-11-18 22:25:34 +01:00
fsl_micfil.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
fsl_mqs.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
fsl_sai.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
fsl_sai.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
fsl_spdif.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
fsl_spdif.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
fsl_ssi.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
fsl_ssi.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
fsl_ssi_dbg.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
fsl_utils.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
fsl_utils.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
imx-audmix.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
imx-audmux.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
imx-audmux.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
imx-es8328.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
imx-mc13783.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
imx-pcm-dma.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
imx-pcm-fiq.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
imx-pcm.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
imx-sgtl5000.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
imx-spdif.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
imx-ssi.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
imx-ssi.h 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
mpc5200_dma.c ASoC: fsl: mpc5200_dma.c: Fix warning of Function parameter or member not described 2024-11-18 11:43:03 +01:00
mpc5200_dma.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mpc5200_psc_ac97.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mpc5200_psc_i2s.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mpc8610_hpcd.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mx27vis-aic32x4.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
p1022_ds.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
p1022_rdk.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pcm030-audio-fabric.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
phycore-ac97.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
wm1133-ev1.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00