aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/drivers/gpu/drm/amd/display/modules
diff options
context:
space:
mode:
authorAlex Hung <alex.hung@amd.com>2023-01-11 09:54:11 -0700
committerAlex Deucher <alexander.deucher@amd.com>2023-02-28 14:29:35 -0500
commitb4ceeffd13870b641a284ffb0f6fb4ffe19b0b14 (patch)
tree6fd827aaae9b9bd8948cf2c8047c0d9d1cd345a4 /drivers/gpu/drm/amd/display/modules
parentdrm/amd/display: Ext displays with dock can't recognized after resume (diff)
downloadwireguard-linux-b4ceeffd13870b641a284ffb0f6fb4ffe19b0b14.tar.xz
wireguard-linux-b4ceeffd13870b641a284ffb0f6fb4ffe19b0b14.zip
drm/amd/display: fix shift-out-of-bounds in CalculateVMAndRowBytes
[WHY] When PTEBufferSizeInRequests is zero, UBSAN reports the following warning because dml_log2 returns an unexpected negative value: shift exponent 4294966273 is too large for 32-bit type 'int' [HOW] In the case PTEBufferSizeInRequests is zero, skip the dml_log2() and assign the result directly. Reviewed-by: Jun Lei <Jun.Lei@amd.com> Acked-by: Qingqing Zhuo <qingqing.zhuo@amd.com> Signed-off-by: Alex Hung <alex.hung@amd.com> Tested-by: Daniel Wheeler <daniel.wheeler@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/display/modules')
0 files changed, 0 insertions, 0 deletions