linux/sound/soc
Muhammad Usama Anjum 5c4e15e632
ASoC: mediatek: mt8365: check validity before usage of i2s_data
There may be a case where i2s_data may not get initialized by the for
loop which will cause the kernel crash. Initialize the i2s_data to NULL
and abort execute if it isn't found.

Fixes: 402bbb13a1 ("ASoC: mediatek: mt8365: Add I2S DAI support")
Signed-off-by: Muhammad Usama Anjum <usama.anjum@collabora.com>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Link: https://patch.msgid.link/20240911111317.4072349-1-usama.anjum@collabora.com
Signed-off-by: Mark Brown <broonie@kernel.org>
2024-09-11 13:59:33 +01:00
..
adi ASoC: Switch back to struct platform_driver::remove() 2024-09-09 18:26:49 +01:00
amd ASoC: amd: acp: remove MODULE_ALIAS for sof based generic machine driver 2024-09-11 12:16:17 +01:00
apple ASoC: Switch back to struct platform_driver::remove() 2024-09-09 18:26:49 +01:00
atmel ASoC: Switch back to struct platform_driver::remove() 2024-09-09 18:26:49 +01:00
au1x ASoC: Switch back to struct platform_driver::remove() 2024-09-09 18:26:49 +01:00
bcm ASoC: Switch back to struct platform_driver::remove() 2024-09-09 18:26:49 +01:00
cirrus ASoC: Switch back to struct platform_driver::remove() 2024-09-09 18:26:49 +01:00
codecs ASoC: tlv320aic31xx: Fix typos 2024-09-10 23:46:53 +01:00
dwc ASoC: Switch back to struct platform_driver::remove() 2024-09-09 18:26:49 +01:00
fsl ASoC: Switch back to struct platform_driver::remove() 2024-09-09 18:26:49 +01:00
generic ASoC: Switch back to struct platform_driver::remove() 2024-09-09 18:26:49 +01:00
google
hisilicon
img ASoC: Switch back to struct platform_driver::remove() 2024-09-09 18:26:49 +01:00
intel ASoC: Switch back to struct platform_driver::remove() 2024-09-09 18:26:49 +01:00
jz4740 ASoC: jz4740: Use *-y instead of *-objs in Makefile 2024-05-08 11:39:21 +09:00
kirkwood ASoC: Switch back to struct platform_driver::remove() 2024-09-09 18:26:49 +01:00
loongson ASoC: loongson: Add the correct judgement return 2024-09-10 12:40:25 +01:00
mediatek ASoC: mediatek: mt8365: check validity before usage of i2s_data 2024-09-11 13:59:33 +01:00
meson ASoC: meson: Remove unused declartion in header file 2024-09-10 18:02:37 +01:00
mxs ASoC: Switch back to struct platform_driver::remove() 2024-09-09 18:26:49 +01:00
pxa ASoC: Switch back to struct platform_driver::remove() 2024-09-09 18:26:49 +01:00
qcom ASoC: Switch back to struct platform_driver::remove() 2024-09-09 18:26:49 +01:00
rockchip ASoC: Switch back to struct platform_driver::remove() 2024-09-09 18:26:49 +01:00
samsung ASoC: Switch back to struct platform_driver::remove() 2024-09-09 18:26:49 +01:00
sdw_utils ASoC: Intel: sof_sdw: add rt1320 amp support 2024-08-28 13:01:52 +01:00
sh ASoC: Switch back to struct platform_driver::remove() 2024-09-09 18:26:49 +01:00
sof ASoC: Switch back to struct platform_driver::remove() 2024-09-09 18:26:49 +01:00
spear ASoC: spear: Use *-y instead of *-objs in Makefile 2024-05-08 11:39:31 +09:00
sprd ASoC: Switch back to struct platform_driver::remove() 2024-09-09 18:26:49 +01:00
starfive ASoC: Switch back to struct platform_driver::remove() 2024-09-09 18:26:49 +01:00
sti ASoC: sti: add missing probe entry for player and reader 2024-07-29 13:36:56 +01:00
stm ASoC: Switch back to struct platform_driver::remove() 2024-09-09 18:26:49 +01:00
sunxi ASoC: Switch back to struct platform_driver::remove() 2024-09-09 18:26:49 +01:00
tegra ASoC: Switch back to struct platform_driver::remove() 2024-09-09 18:26:49 +01:00
ti ASoC: Switch back to struct platform_driver::remove() 2024-09-09 18:26:49 +01:00
uniphier ASoC: Switch back to struct platform_driver::remove() 2024-09-09 18:26:49 +01:00
ux500 ASoC: Switch back to struct platform_driver::remove() 2024-09-09 18:26:49 +01:00
xilinx ASoC: Switch back to struct platform_driver::remove() 2024-09-09 18:26:49 +01:00
xtensa ASoC: Switch back to struct platform_driver::remove() 2024-09-09 18:26:49 +01:00
Kconfig ASoC: intel/sdw-utils: move soundwire machine driver soc ops 2024-08-01 12:43:57 +01:00
Makefile ASoC: intel/sdw-utils: move soundwire machine driver soc ops 2024-08-01 12:43:57 +01:00
soc-ac97.c ASoC: soc-ac97: Fix the incorrect description 2024-09-10 12:40:24 +01:00
soc-acpi.c
soc-card-test.c ASoC: soc-card: soc-card-test: Fix some error handling in init() 2024-04-14 16:54:39 +09:00
soc-card.c ASoC: soc-card: Use snd_ctl_find_id_mixer() instead of open-coding 2024-04-02 15:54:48 +01:00
soc-component.c ASoC: soc-component: Add new snd_soc_component_get_kcontrol() helpers 2024-08-02 14:04:39 +01:00
soc-compress.c ASoC: soc-compress: Fix and add DPCM locking 2024-03-18 14:41:51 +00:00
soc-core.c ASoC: Use of_property_read_bool() 2024-08-01 12:51:45 +01:00
soc-dai.c ASoC: remove snd_soc_dai_link_set_capabilities() 2024-08-22 13:36:46 +01:00
soc-dapm.c ASoC: dapm: Use IS_ERR_OR_NULL() helper function 2024-08-28 13:52:18 +01:00
soc-devres.c
soc-generic-dmaengine-pcm.c ALSA: dmaengine: Synchronize dma channel after drop() 2024-06-11 17:13:31 +01:00
soc-jack.c ASoC: soc-jack: Get rid of legacy GPIO support 2024-03-26 17:13:45 +00:00
soc-link.c
soc-ops.c ASoC: ops: Simplify with cleanup.h 2024-07-08 12:50:02 +01:00
soc-pcm.c ASoC: soc-pcm: makes snd_soc_dpcm_can_be_xxx() local function 2024-08-28 13:02:20 +01:00
soc-topology-test.c ASoC: topology-test: Convert comma to semicolon 2024-09-05 16:07:06 +01:00
soc-topology.c ASoC: topology: Unify code for creating standalone and widget enum control 2024-07-02 14:27:08 +01:00
soc-utils-test.c
soc-utils.c ASoC: soc-utils: allow sample rate up to 768kHz for the dummy dai 2024-06-28 13:39:29 +01:00