Re: [PATCH] sisfb: limit POST memory test according to PCI resource length

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Paul Mundt
Date: Tuesday, November 9, 2010 - 6:03 pm

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.
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH] sisfb: limit POST memory test according to PCI ..., Paul Mundt, (Tue Nov 9, 6:03 pm)