sst-linux/sound/soc/fsl
Henry Martin 38253922a8 ASoC: imx-card: Add NULL check in imx_card_probe()
[ Upstream commit 93d34608fd162f725172e780b1c60cc93a920719 ]

devm_kasprintf() returns NULL when memory allocation fails. Currently,
imx_card_probe() does not check for this case, which results in a NULL
pointer dereference.

Add NULL check after devm_kasprintf() to prevent this issue.

Fixes: aa736700f4 ("ASoC: imx-card: Add imx-card machine driver")
Signed-off-by: Henry Martin <bsdhenrymartin@gmail.com>
Reviewed-by: Frank Li <Frank.Li@nxp.com>
Link: https://patch.msgid.link/20250401142510.29900-1-bsdhenrymartin@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2025-04-10 14:33:40 +02:00
..
efika-audio-fabric.c
eukrea-tlv320.c ASoC: eureka-tlv320: Hold reference returned from of_find_xxx API 2022-09-14 15:05:59 +01:00
fsl_asrc_common.h
fsl_asrc_dma.c
fsl_asrc.c ASoC: fsl_asrc fsl_esai fsl_sai: allow CONFIG_PM=N 2022-10-28 17:14:43 +01:00
fsl_asrc.h
fsl_aud2htx.c
fsl_aud2htx.h ASoC: fsl_aud2htx: Add aud2htx module driver 2020-11-05 17:06:16 +00:00
fsl_audmix.c ASoC: fsl_audmux: Fix amixer write errors 2022-09-23 17:54:10 +01:00
fsl_audmix.h ASoC: fsl_audmix: Add spin lock to protect tdms 2019-11-11 13:01:37 +00:00
fsl_dma.c
fsl_dma.h
fsl_easrc.c ASoC: fsl: Fix PM disable depth imbalance in fsl_easrc_probe 2023-11-20 11:52:06 +01:00
fsl_easrc.h
fsl_esai.c ASoC: fsl_asrc fsl_esai fsl_sai: allow CONFIG_PM=N 2022-10-28 17:14:43 +01:00
fsl_esai.h
fsl_micfil.c ASoC: fsl_micfil: Enable default case in micfil_set_quality() 2025-03-07 16:56:39 +01:00
fsl_micfil.h ASoC: fsl_micfil: change micfil default settings 2022-06-29 11:58:45 +01:00
fsl_mqs.c
fsl_rpmsg.c ASoC: fsl_rpmsg: Fix error handler with pm_runtime_enable 2024-01-10 17:10:23 +01:00
fsl_rpmsg.h
fsl_sai.c ASoC: fsl_sai: Enable 'FIFO continue on error' FCONT bit 2024-11-01 01:56:03 +01:00
fsl_sai.h ASoC: fsl_sai: Enable 'FIFO continue on error' FCONT bit 2024-11-01 01:56:03 +01:00
fsl_spdif.c ASoC: fsl_spdif: Silence output on stop 2023-08-03 10:24:04 +02:00
fsl_spdif.h
fsl_ssi_dbg.c ASoC: fsl: fsl_ssi_dbg: remove spurious kernel-doc comment start 2020-07-03 16:09:24 +01:00
fsl_ssi.c ASoC: Use of_property_read_bool() for boolean properties 2023-10-19 23:08:51 +02:00
fsl_ssi.h
fsl_utils.c
fsl_utils.h
fsl_xcvr.c
fsl_xcvr.h ASoC: fsl_xcvr: Add XCVR ASoC CPU DAI driver 2020-10-26 15:45:31 +00:00
fsl-asoc-card.c ASoC: fsl-asoc-card: set priv->pdev before using it 2024-07-05 09:31:45 +02:00
imx-audio-rpmsg.c ASoC: imx-audio-rpmsg: use module_rpmsg_driver to simplify the code 2021-06-03 13:59:57 +01:00
imx-audmix.c ASoC: imx-audmix: Fix return error with devm_clk_get() 2023-10-06 14:56:37 +02:00
imx-audmux.c ASoC: imx-audmux: remove unnecessary check of clk_disable_unprepare/clk_prepare_enable 2022-06-09 11:57:46 +01:00
imx-audmux.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
imx-card.c ASoC: imx-card: Add NULL check in imx_card_probe() 2025-04-10 14:33:40 +02:00
imx-es8328.c ASoC: soc-card: Create jack kcontrol without pins 2022-04-14 17:37:21 +01:00
imx-hdmi.c
imx-pcm-dma.c ASoC: fsl: Drop unused argument from imx_pcm_dma_init() 2022-02-28 13:33:57 +00:00
imx-pcm-fiq.c ASoC: fsl: imx-pcm-fiq: Use managed buffer allocation 2021-08-04 08:08:42 +02:00
imx-pcm-rpmsg.c ASoC: fsl: imx-pcm-rpmsg: Add SNDRV_PCM_INFO_BATCH flag 2023-10-06 14:56:55 +02:00
imx-pcm-rpmsg.h ASoC: imx-pcm-rpmsg: Fix warning of incorrect type in assignment 2021-05-10 13:05:38 +01:00
imx-pcm.h
imx-rpmsg.c ASoC: imx-rpmsg: Set ignore_pmdown_time for dai_link 2023-10-06 14:56:56 +02:00
imx-sgtl5000.c ASoC: fsl: Fix refcount leak in imx_sgtl5000_probe 2022-05-11 17:42:09 +01:00
imx-spdif.c ASoC: fsl: Use dev_err_probe() helper 2021-12-20 12:47:14 +00:00
imx-ssi.h
Kconfig
Makefile ASoC: imx-card: Add imx-card machine driver 2021-05-20 17:57:30 +01:00
mpc5200_dma.c ASoC: fsl: mpc5200_dma.c: Fix warning of Function parameter or member not described 2023-11-20 11:52:06 +01:00
mpc5200_dma.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
mpc5200_psc_ac97.c ASoC: soc-core: remove bus_control 2020-01-21 17:07:08 +00:00
mpc5200_psc_i2s.c
mpc8610_hpcd.c ASoC: mpc8610_hpcd: Update to modern clocking terminology 2021-09-22 13:23:29 +01:00
p1022_ds.c ASoC: pl1022_ds: Update to modern clocking terminology 2021-09-22 13:23:30 +01:00
p1022_rdk.c ASoC: pl1022_rdk: Update to modern clocking terminology 2021-09-22 13:23:31 +01:00
pcm030-audio-fabric.c ASoC: fsl: pcm030-audio-fabric: use platform_device_unregsiter() 2022-07-04 12:44:17 +01:00