Re: [PATCH] ASoC: mediatek: mt8365: check validity before usage of i2s_data

From: AngeloGioacchino Del Regno
Date: Wed Sep 11 2024 - 07:28:10 EST


Il 11/09/24 13:13, Muhammad Usama Anjum ha scritto:
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: 402bbb13a195 ("ASoC: mediatek: mt8365: Add I2S DAI support")
Signed-off-by: Muhammad Usama Anjum <usama.anjum@xxxxxxxxxxxxx>

Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@xxxxxxxxxxxxx>