]> git.baikalelectronics.ru Git - kernel.git/commit
efifb: check that the base address is plausible on pci systems
authorPeter Jones <pjones@redhat.com>
Wed, 22 Sep 2010 20:05:04 +0000 (13:05 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 23 Sep 2010 00:22:39 +0000 (17:22 -0700)
commit7ca007272ccc0a7edacba70861a7af025ccc9133
treeb9d5f22610675f4d8bbdeba2ccdcb4c232140499
parent3eb20510f9f523a9d1b9c6ab63a43fdd95df9576
efifb: check that the base address is plausible on pci systems

Some Apple machines have identical DMI data but different memory
configurations for the video.  Given that, check that the address in our
table is actually within the range of a PCI BAR on a VGA device in the
machine.

This also fixes up the return value from set_system(), which has always
been wrong, but never resulted in bad behavior since there's only ever
been one matching entry in the dmi table.

The patch

1) stops people's machines from crashing when we get their display wrong,
   which seems to be unfortunately inevitable,

2) allows us to support identical dmi data with differing video memory
   configurations

This also adds me as the efifb maintainer, since I've effectively been
acting as such for quite some time.

Signed-off-by: Peter Jones <pjones@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
MAINTAINERS
drivers/video/efifb.c