diff options
author | Mario Kleiner <mario.kleiner.de@gmail.com> | 2017-06-13 05:17:10 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-06-24 05:11:13 (GMT) |
commit | 7f7bb1173db826a292727ee6d7a499cef4e6e0bc (patch) | |
tree | c10cc740a55ef14eda77c8f0e837943a09e05354 /lib/stackdepot.c | |
parent | f6e99a2efc03eea6444f59f158e1b0ce7c51ef36 (diff) | |
download | linux-7f7bb1173db826a292727ee6d7a499cef4e6e0bc.tar.xz |
drm/amdgpu: Fix overflow of watermark calcs at > 4k resolutions.
commit bea10413934dcf98cb9b2dfcdc56e1d28f192897 upstream.
Commit d63c277dc672e0
("drm/amdgpu: Make display watermark calculations more accurate")
made watermark calculations more accurate, but not for > 4k
resolutions on 32-Bit architectures, as it introduced an integer
overflow for those setups and resolutions.
Fix this by proper u64 casting and division.
Signed-off-by: Mario Kleiner <mario.kleiner.de@gmail.com>
Reported-by: Ben Hutchings <ben.hutchings@codethink.co.uk>
Fixes: d63c277dc672 ("drm/amdgpu: Make display watermark calculations more accurate")
Cc: Ben Hutchings <ben.hutchings@codethink.co.uk>
Cc: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'lib/stackdepot.c')
0 files changed, 0 insertions, 0 deletions