summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
diff options
context:
space:
mode:
authorAndrzej Hajda <andrzej.hajda@intel.com>2022-06-24 14:35:28 +0300
committerRodrigo Vivi <rodrigo.vivi@intel.com>2022-07-13 00:57:27 +0300
commitab3edc679c552a466e4bf0b11af3666008bd65a2 (patch)
tree207faa33dc00123b8aa8169dd48743018155f0c0 /drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
parentc877bed82e1017c102c137d432933ccbba92c119 (diff)
downloadlinux-ab3edc679c552a466e4bf0b11af3666008bd65a2.tar.xz
drm/i915/selftests: fix subtraction overflow bug
On some machines hole_end can be small enough to cause subtraction overflow. On the other side (addr + 2 * min_alignment) can overflow in case of mock tests. This patch should handle both cases. Fixes: e1c5f754067b59 ("drm/i915: Avoid overflow in computing pot_hole loop termination") Closes: https://gitlab.freedesktop.org/drm/intel/-/issues/3674 Signed-off-by: Andrzej Hajda <andrzej.hajda@intel.com> Reviewed-by: Andi Shyti <andi.shyti@linux.intel.com> Signed-off-by: Andi Shyti <andi.shyti@linux.intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20220624113528.2159210-1-andrzej.hajda@intel.com Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_object.c')
0 files changed, 0 insertions, 0 deletions