]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
intel-iommu: Fix oops in device_to_iommu() when devices not found.
authorDavid Woodhouse <dwmw2@infradead.org>
Tue, 5 May 2009 08:25:26 +0000 (09:25 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 8 May 2009 22:45:10 +0000 (15:45 -0700)
commita4392e8b0e6ee266a19f6db90c4d56d267a58b4f
tree3af7e20805aad04325f3f93b7770cb83b9a8a77b
parentedfbb1affe9454a32cb55c0c77dedac0b60746f5
intel-iommu: Fix oops in device_to_iommu() when devices not found.

(cherry picked from commit 4958c5dc7bcb2e42d985cd26aeafd8a7eca9ab1e)

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/pci/intel-iommu.c