aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/flamegraph.py
diff options
context:
space:
mode:
authorAlex Hung <[email protected]>2023-07-10 18:23:58 -0600
committerAlex Deucher <[email protected]>2023-10-03 15:42:26 -0400
commit58c3b3341cea4f75dc8c003b89f8a6dd8ec55e50 (patch)
tree3c925f15cdee90ff2735ae6961243c7b44a1379b /tools/perf/scripts/python/flamegraph.py
parent8a307777c36e15f38c9f23778babcd368144c7d8 (diff)
drm/amd/display: Validate hw_points_num before using it
[WHAT] hw_points_num is 0 before ogam LUT is programmed; however, function "dwb3_program_ogam_pwl" assumes hw_points_num is always greater than 0, i.e. substracting it by 1 as an array index. [HOW] Check hw_points_num is not equal to 0 before using it. Reviewed-by: Harry Wentland <[email protected]> Signed-off-by: Alex Hung <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/flamegraph.py')
0 files changed, 0 insertions, 0 deletions