]> git.openpandora.org Git - pandora-kernel.git/commitdiff
intel-iommu: Fix oops in device_to_iommu() when devices not found.
authorDavid Woodhouse <David.Woodhouse@intel.com>
Mon, 6 Apr 2009 20:30:01 +0000 (13:30 -0700)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Mon, 6 Apr 2009 20:30:01 +0000 (13:30 -0700)
It's possible for a device in the drhd->devices[] array to be NULL if
it wasn't found at boot time, which means we have to check for that
case.

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
drivers/pci/intel-iommu.c

Simple merge