On Wed, Nov 10, 2010 at 12:25:04AM +0200, Aaro Koskinen wrote:
sisfb_post_map_vram() expects that the mapsize >= min, and falls back on
the default aperture size otherwise. If you're going to pass in a
variable size for video_size then this expectation may no longer hold
true, and you've then changed the behaviour if an invalid size succeeds
on the initial ioremap() attempt.
Simply inserting a:
if (*mapsize < min)
return;
sanity check prior to the ioremap() should preserve the existing
behaviour.
--