intel_agp: Don't oops with zero stolen memory
authorOndrej Zary <linux@rainbow-software.org>
Wed, 16 Jun 2010 08:13:52 +0000 (10:13 +0200)
committerEric Anholt <eric@anholt.net>
Mon, 2 Aug 2010 02:03:42 +0000 (19:03 -0700)
commit8699be3ef1d71d1c5e11eee239f53573d72515a3
treebf099cadccc715115b7e7b9f83a58a337a544dc9
parent43b27f40ebc40758a4acad03ea9fa717ba65d76e
intel_agp: Don't oops with zero stolen memory

When "onboard video memory" is set do "disabled" in BIOS on Asus P4P800-VM
board (i865G), kernel oopses with memory corruption:
https://bugs.freedesktop.org/show_bug.cgi?id=28430

Fix that by cleanly aborting the initialization.

Signed-off-by: Ondrej Zary <linux@rainbow-software.org>
Signed-off-by: Eric Anholt <eric@anholt.net>
drivers/char/agp/intel-gtt.c