linux/sound/soc/mediatek
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
..
common ASoC: Switch back to struct platform_driver::remove() 2024-09-09 18:26:49 +01:00
mt2701 ASoC: Switch back to struct platform_driver::remove() 2024-09-09 18:26:49 +01:00
mt6797 ASoC: Switch back to struct platform_driver::remove() 2024-09-09 18:26:49 +01:00
mt7986 ASoC: Switch back to struct platform_driver::remove() 2024-09-09 18:26:49 +01:00
mt8173 ASoC: Switch back to struct platform_driver::remove() 2024-09-09 18:26:49 +01:00
mt8183 ASoC: Switch back to struct platform_driver::remove() 2024-09-09 18:26:49 +01:00
mt8186 ASoC: mediatek: Use *-y instead of *-objs in Makefile 2024-05-08 11:39:23 +09:00
mt8188 ASoC: mediatek: mt8188: Mark AFE_DAC_CON0 register as volatile 2024-08-14 21:56:34 +01:00
mt8192 ASoC: Switch back to struct platform_driver::remove() 2024-09-09 18:26:49 +01:00
mt8195 ASoC: Switch back to struct platform_driver::remove() 2024-09-09 18:26:49 +01:00
mt8365 ASoC: mediatek: mt8365: check validity before usage of i2s_data 2024-09-11 13:59:33 +01:00
Kconfig ASoC: mt8365: Allow build coverage 2024-09-09 16:58:18 +01:00
Makefile ASoC: mediatek: Add MT8365 support 2024-09-05 12:31:04 +01:00