aboutsummaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_job.c
diff options
context:
space:
mode:
authorVille Syrjälä <ville.syrjala@linux.intel.com>2024-11-29 06:26:28 +0200
committerVille Syrjälä <ville.syrjala@linux.intel.com>2024-12-14 00:05:32 +0200
commit9398332f23fab10c5ec57c168b44e72997d6318e (patch)
tree1e763a5a15a81f3e5fd24339371bab3a495d9da1 /drivers/gpu/drm/amd/amdgpu/amdgpu_job.c
parent080b2e7b5e9ad23343e4b11f0751e4c724a78958 (diff)
downloadlinux-9398332f23fab10c5ec57c168b44e72997d6318e.tar.gz
linux-9398332f23fab10c5ec57c168b44e72997d6318e.tar.bz2
linux-9398332f23fab10c5ec57c168b44e72997d6318e.zip
drm/modes: Avoid divide by zero harder in drm_mode_vrefresh()
drm_mode_vrefresh() is trying to avoid divide by zero by checking whether htotal or vtotal are zero. But we may still end up with a div-by-zero of vtotal*htotal*... Cc: stable@vger.kernel.org Reported-by: syzbot+622bba18029bcde672e1@syzkaller.appspotmail.com Closes: https://syzkaller.appspot.com/bug?extid=622bba18029bcde672e1 Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20241129042629.18280-2-ville.syrjala@linux.intel.com Reviewed-by: Jani Nikula <jani.nikula@intel.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_job.c')
0 files changed, 0 insertions, 0 deletions