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: Dave Airlie <airlied@redhat.com> Reviewed-by: Michel Dänzer <michel@daenzer.net> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
This commit is contained in:
@@ -1458,7 +1458,7 @@ static bool apertures_overlap(struct aperture *gen, struct aperture *hw)
|
|||||||
if (gen->base == hw->base)
|
if (gen->base == hw->base)
|
||||||
return true;
|
return true;
|
||||||
/* is the generic aperture base inside the hw base->hw base+size */
|
/* 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 true;
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user