aboutsummaryrefslogtreecommitdiff
path: root/lib/crypto/mpi/mpi-sub-ui.c
diff options
context:
space:
mode:
authorSamson Tam <[email protected]>2023-10-05 01:31:12 -0400
committerAlex Deucher <[email protected]>2023-10-26 19:00:15 -0400
commit79f3f1b66753b3a3a269d73676bf50987921f267 (patch)
treee502153d11a2f07da333d7c0c8c7f8218cbed74e /lib/crypto/mpi/mpi-sub-ui.c
parentc4066d8be4d8c7c01d74ba1872cab2bc589d4912 (diff)
drm/amd/display: fix num_ways overflow error
[Why] Helper function calculates num_ways using 32-bit. But is returned as 8-bit. If num_ways exceeds 8-bit, then it reports back the incorrect num_ways and erroneously uses MALL when it should not [How] Make returned value 32-bit and convert after it checks against caps.cache_num_ways, which is under 8-bit Reviewed-by: Alvin Lee <[email protected]> Acked-by: Roman Li <[email protected]> Signed-off-by: Samson Tam <[email protected]> Tested-by: Daniel Wheeler <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'lib/crypto/mpi/mpi-sub-ui.c')
0 files changed, 0 insertions, 0 deletions