diff options
| author | Samson Tam <Samson.Tam@amd.com> | 2025-01-07 14:17:15 -0500 |
|---|---|---|
| committer | Alex Deucher <alexander.deucher@amd.com> | 2025-02-25 11:44:02 -0500 |
| commit | 259eacbfcf66c52384bf4e194fd34939b6007265 (patch) | |
| tree | 38d1a61554c25bdba3657bb595ad5c160ce64c3d /security | |
| parent | drm/amd/display: fix check for identity ratio (diff) | |
| download | linux-259eacbfcf66c52384bf4e194fd34939b6007265.tar.gz linux-259eacbfcf66c52384bf4e194fd34939b6007265.zip | |
drm/amd/display: Fix unit test failure
[Why]
Some of unit tests use large scaling ratio such that when we
calculate optimal number of taps, max_taps is negative.
Then in recent change, we changed max_taps to uint instead
of int so now max_taps wraps and is positive. This change
changed the behaviour from returning back false to return
true and breaks unit test check
[How]
Add check to prevent max_taps from wrapping and set to 0
instead
Signed-off-by: Samson Tam <Samson.Tam@amd.com>
Reviewed-by: Alvin Lee <alvin.lee2@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'security')
0 files changed, 0 insertions, 0 deletions
