Skip to content

Commit

Permalink
fb: fix overlapping test off-by-one.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Dave Airlie authored and Paul Mundt committed Dec 24, 2010
1 parent 8c1ac08 commit acd0acb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/video/fbmem.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit acd0acb

Please sign in to comment.