aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/flamegraph.py
diff options
context:
space:
mode:
authorTrevor Wu <[email protected]>2023-03-07 12:09:35 +0800
committerMark Brown <[email protected]>2023-03-13 14:08:37 +0000
commitff728899065922534d80170685fb807194d6487b (patch)
tree6c92f85855c4ea6d254cbb2535c15ebe68e5beda /tools/perf/scripts/python/flamegraph.py
parent4727d4d775654986913a21c35c7cfaf1ecdafd62 (diff)
ASoC: mediatek: mt8195: add dai id check before accessing array
Coverity shows "afe_priv->dai_priv[dai_id] evaluates to an address that could be at negative offset of an array.". Add dai id check before accessing the array element. This ensures that the offset of an array must be a valid index. Signed-off-by: Trevor Wu <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/flamegraph.py')
0 files changed, 0 insertions, 0 deletions