intel-iommu: Avoid panic() for DRHD at address zero.
commite523b38e2f568af58baa13120a994cbf24e6dee0
authorDavid Woodhouse <David.Woodhouse@intel.com>
Sat, 11 Apr 2009 05:27:48 +0000 (10 22:27 -0700)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Sat, 11 Apr 2009 05:27:48 +0000 (10 22:27 -0700)
tree2601f9c24420cb7c7c381062965908287fdde9a8
parent31d3568dfeb1dfb2735f119efe5ece7c6d40969c
intel-iommu: Avoid panic() for DRHD at address zero.

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>
drivers/pci/dmar.c