• Peter Jones's avatar
    efifb: check that the base address is plausible on pci systems · 85a00d9b
    Peter Jones authored
    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: default avatarPeter Jones <pjones@redhat.com>
    Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
    Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
    85a00d9b
MAINTAINERS 174 KB