x86: Sanity test on vesa parameters before setting up kernel screen_info
authorBin Meng <bmeng.cn@gmail.com>
Thu, 30 Jul 2015 10:49:13 +0000 (03:49 -0700)
committerSimon Glass <sjg@chromium.org>
Wed, 5 Aug 2015 14:42:38 +0000 (08:42 -0600)
commit1e7a04730426a96110989ed9c2bafb0d66ec2428
treebb24547509ecf520ef441542132656ed3e3ddb90
parenta2eb65fcad4c66ee6992e18d8bea15fd0b07886e
x86: Sanity test on vesa parameters before setting up kernel screen_info

We should not set up kernel screen_info when the vesa parameters are
insane, otherwise kernel will panic.

Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Acked-by: Simon Glass <sjg@chromium.org>
drivers/pci/pci_rom.c