Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit acd0acb6 authored by Dave Airlie's avatar Dave Airlie Committed by Paul Mundt
Browse files

fb: fix overlapping test off-by-one.



On my system with a radeon x2, the first GPU was not overlapping vesa
but the test decided it was.

Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
Reviewed-by: default avatarMichel Dänzer <michel@daenzer.net>
Signed-off-by: default avatarPaul Mundt <lethal@linux-sh.org>
parent 8c1ac08b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1458,7 +1458,7 @@ static bool apertures_overlap(struct aperture *gen, struct aperture *hw)
	if (gen->base == hw->base)
		return true;
	/* is the generic aperture base inside the hw base->hw base+size */
	if (gen->base > hw->base && gen->base <= hw->base + hw->size)
	if (gen->base > hw->base && gen->base < hw->base + hw->size)
		return true;
	return false;
}