diff options
author | Muhammad Usama Anjum <[email protected]> | 2024-09-11 16:13:07 +0500 |
---|---|---|
committer | Mark Brown <[email protected]> | 2024-09-11 13:59:33 +0100 |
commit | 5c4e15e63216e7268bb2f1132ee8fad0ec46bbb7 (patch) | |
tree | abd7b45c03430b051ad1ee43ceca1e3a4edf1e1c /tools/perf/util/scripting-engines/trace-event-python.c | |
parent | 0b0aa67baa8904e3c1e13be48a2ca125f59ead3d (diff) |
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: 402bbb13a195 ("ASoC: mediatek: mt8365: Add I2S DAI support")
Signed-off-by: Muhammad Usama Anjum <[email protected]>
Reviewed-by: AngeloGioacchino Del Regno <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions