]> git.baikalelectronics.ru Git - kernel.git/commit
sisfb: limit POST memory test according to PCI resource length
authorAaro Koskinen <aaro.koskinen@iki.fi>
Wed, 10 Nov 2010 11:04:19 +0000 (13:04 +0200)
committerPaul Mundt <lethal@linux-sh.org>
Wed, 10 Nov 2010 11:26:37 +0000 (20:26 +0900)
commitbe1c457507ec13816bb324727662b8087875a3be
treedfde210bb1990a776894e1d2bd214f5a473a5177
parent12192bb1cc354c96ea8ab86e96db9a67f29b5594
sisfb: limit POST memory test according to PCI resource length

If the POST memory test fails, the driver may access illegal
memory areas. Instead of hard coding the maximum size, set it
according to the PCI resource length (an additional check is needed in
sisfb_post_map_vram() to ensure it's big enough). DRAM sizing will later
adjust video_size to the correct value.

Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi>
Cc: Thomas Winischhofer <thomas@winischhofer.net>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
drivers/video/sis/sis_main.c