[Intel-gfx] [PATCH] drm/i915/selftests: fix subtraction overflow bug

Andi Shyti andi.shyti at linux.intel.com
Mon Jul 11 16:05:02 UTC 2022


Hi Andrzej,

On Fri, Jun 24, 2022 at 01:35:28PM +0200, Andrzej Hajda wrote:
> 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 at intel.com>

pushed in drm-intel-next-fixes

Thanks,
Andi


More information about the Intel-gfx mailing list