Skip to content
Snippets Groups Projects
Unverified Commit 5c4e15e6 authored by Muhammad Usama Anjum's avatar Muhammad Usama Anjum Committed by Mark Brown
Browse files

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: 402bbb13 ("ASoC: mediatek: mt8365: Add I2S DAI support")
Signed-off-by: default avatarMuhammad Usama Anjum <usama.anjum@collabora.com>
Reviewed-by: default avatarAngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Link: https://patch.msgid.link/20240911111317.4072349-1-usama.anjum@collabora.com


Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent 0b0aa67b
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment