intel-iommu: Avoid panic() for DRHD at address zero.
commitb68f007ad8ec30e567b42f839268e89ad2cabd63
authorDavid Woodhouse <dwmw2@infradead.org>
Tue, 5 May 2009 08:25:28 +0000 (5 09:25 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 8 May 2009 22:45:10 +0000 (8 15:45 -0700)
tree2a9428a9931880e5d6673ffedeef4d627067805a
parenta4392e8b0e6ee266a19f6db90c4d56d267a58b4f
intel-iommu: Avoid panic() for DRHD at address zero.

(cherry picked from commit e523b38e2f568af58baa13120a994cbf24e6dee0)

If the BIOS does something obviously stupid, like claiming that the
registers for the IOMMU are at physical address zero, then print a nasty
message and abort, rather than trying to set up the IOMMU and then later
panicking.

It's becoming more and more obvious that trusting this stuff to the BIOS
was a mistake.

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/pci/dmar.c