diff options
author | 2023-12-01 06:25:34 -0700 | |
---|---|---|
committer | 2023-12-06 15:22:35 -0500 | |
commit | 86ecd796a88e26e025f184ff6a2e8872a6dc9ac7 (patch) | |
tree | c03c8c397bacc20ec3be943762152b5baa5d2c08 /drivers/gpu/drm/amd/amdgpu/amdgpu_mode.h | |
parent | drm/amd/display: Fix writeback_info never got updated (diff) | |
download | linux-rng-86ecd796a88e26e025f184ff6a2e8872a6dc9ac7.tar.xz linux-rng-86ecd796a88e26e025f184ff6a2e8872a6dc9ac7.zip |
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.
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Reviewed-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Alex Hung <alex.hung@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_mode.h')
0 files changed, 0 insertions, 0 deletions